]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[bos #26449] [EDF] (2021) SHAPER: save imported images. Correction for image dumping...
authorjfa <jfa@opencascade.com>
Wed, 8 Dec 2021 06:04:10 +0000 (09:04 +0300)
committerjfa <jfa@opencascade.com>
Wed, 8 Dec 2021 06:04:10 +0000 (09:04 +0300)
src/ExchangePlugin/ExchangePlugin_Dump.cpp

index b65b289704ad60b906ee4da87dbb3a7b02e7de12..43680ab74453040b1bae9737f42855fff5829209 100644 (file)
@@ -173,7 +173,9 @@ void ExchangePlugin_Dump::dump(const std::string& theFileName)
   AttributeStringPtr aDumpDirAttr =
     this->string(ExchangePlugin_Dump::DUMP_DIR_ID());
   std::string aDumpDir;
-  if (aDumpDirAttr.get() && !aDumpDirAttr->isInitialized())
+  if (aDumpDirAttr.get() && aDumpDirAttr->isInitialized())
+    aDumpDir = aDumpDirAttr->value();
+  else
     aDumpDir = GeomAlgoAPI_Tools::File_Tools::path(theFileName);
   aDumper->setDumpDir(aDumpDir);