X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Dump.cpp;h=aaee3f0034519034e97a43b25cbd67f1f66feeda;hb=88ee9b2b81cf93a6324336b57e30cc8a3a487499;hp=b65b289704ad60b906ee4da87dbb3a7b02e7de12;hpb=aa941d4038c5880146ea98adc84e5d02fc729c49;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Dump.cpp b/src/ExchangePlugin/ExchangePlugin_Dump.cpp index b65b28970..aaee3f003 100644 --- a/src/ExchangePlugin/ExchangePlugin_Dump.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Dump.cpp @@ -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);