]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
In exportXAO, show a warning instead of setError if some group or field can't be...
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 31 Jan 2018 15:51:11 +0000 (16:51 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 31 Jan 2018 15:51:11 +0000 (16:51 +0100)
src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp

index 02b31988bc8193e0de6245ee6ef8bbbb1cc6519b..407887dbce81cf2c0a194d64600a48fc6501dcb0 100644 (file)
@@ -54,6 +54,8 @@
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
 
+#include <Events_InfoMessage.h>
+
 #include <XAO_Group.hxx>
 #include <XAO_Field.hxx>
 #include <XAO_Xao.hxx>
@@ -301,7 +303,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName)
       msg += e.what();
       msg += "\n";
       msg += "=> skipping this group from XAO export.";
-      setError(msg);
+      Events_InfoMessage("ExportFeature", msg, this).send();
       aXao.removeGroup(aXaoGroup);
     }
   }
@@ -396,7 +398,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName)
       msg += e.what();
       msg += "\n";
       msg += "=> skipping this field from XAO export.";
-      setError(msg);
+      Events_InfoMessage("ExportFeature", msg, this).send();
       aXao.removeField(aXaoField);
     }
   }