]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Two fixes in Export feature: cbr/fix_delete_feature_after_export
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 25 Jun 2018 13:17:02 +0000 (15:17 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 25 Jun 2018 13:17:02 +0000 (15:17 +0200)
- Cleaner private attribute initialization.
- Don't check the error message, since the feature is deleted

src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp
src/ExchangePlugin/ExchangePlugin_ExportFeature.h
src/ExchangePlugin/Test/Test2290.py

index 8803b3d3cb9fa1cf64b9b9772d07800ecdaf6dcd..7ab911d6c736f5cb23c97d186fa1a03e20e561bb 100644 (file)
@@ -65,6 +65,7 @@
 
 ExchangePlugin_ExportFeature::ExchangePlugin_ExportFeature()
 {
+  _comes_from_export_to_geom = false;
 }
 
 ExchangePlugin_ExportFeature::~ExchangePlugin_ExportFeature()
index 317c10858ccac3ade5e5a1b887c3d745378a0d6b..3571d6eed292295f63838e5b266752b86824dfa1 100644 (file)
@@ -126,7 +126,7 @@ protected:
   EXCHANGEPLUGIN_EXPORT void exportXAO(const std::string& theFileName);
 
 private:
-  bool _comes_from_export_to_geom = false;
+  bool _comes_from_export_to_geom;
 };
 
 #endif /* EXPORT_EXPORTFEATURE_H_ */
index 04a0ca50ae5fec253972c6ffef9e84b621c9e1a1..5671cead8c80a456c65b918befc7cf808633957a 100644 (file)
@@ -37,5 +37,3 @@ anExportFeature.string("ExportType").setValue("XAO")
 anExportFeature.string("xao_author").setValue("me")
 anExportFeature.string("xao_geometry_name").setValue("mygeom")
 model.end()
-
-assert anExportFeature.error() == ""