Salome HOME
Copyright update 2022
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Dump.cpp
index b65b289704ad60b906ee4da87dbb3a7b02e7de12..aaee3f0034519034e97a43b25cbd67f1f66feeda 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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);