Salome HOME
Task #3231: Sketcher Offset of a curve
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ExportFeature.cpp
index ca42c50ea082ebb0bac8b35122d1c8fd22a15d91..93500cc5e7660a345a7aa6e851878269123e23fe 100644 (file)
@@ -110,11 +110,13 @@ void ExchangePlugin_ExportFeature::initAttributes()
   // if the type of export operation is XAO
   AttributeStringPtr aTypeAttr = string(EXPORT_TYPE_ID());
   if (aTypeAttr->isInitialized() && aTypeAttr->value() == "XAO") {
+    bool aWasBlocked = data()->blockSendAttributeUpdated(true, false);
     AttributeSelectionListPtr aSelList = selectionList(SELECTION_LIST_ID());
     AttributeSelectionListPtr aXAOSelList = selectionList(XAO_SELECTION_LIST_ID());
     if (aSelList->size() > 0 && aXAOSelList->size() == 0)
       aSelList->copyTo(aXAOSelList);
     aSelList->clear();
+    data()->blockSendAttributeUpdated(aWasBlocked, false);
   }
 }
 
@@ -590,7 +592,7 @@ bool ExchangePlugin_ExportFeature::isMacro() const
     }
   }
 
-  if (aFormat == "XAO") { // on export to GEOm the selection attribute is filled - this is
+  if (aFormat == "XAO") { // on export to GEOM the selection attribute is filled - this is
                           // an exceptional case where export to XAO feature must be kept
     AttributeSelectionListPtr aList = aThis->selectionList(XAO_SELECTION_LIST_ID());
     return !aList->isInitialized() || aList->size() == 0;