From: jfa Date: Wed, 8 Dec 2021 06:04:10 +0000 (+0300) Subject: [bos #26449] [EDF] (2021) SHAPER: save imported images. Correction for image dumping... X-Git-Tag: V9_9_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e839ccf7674ce5c21288186dc352b66d428680ac;p=modules%2Fshaper.git [bos #26449] [EDF] (2021) SHAPER: save imported images. Correction for image dumping directory. --- diff --git a/src/ExchangePlugin/ExchangePlugin_Dump.cpp b/src/ExchangePlugin/ExchangePlugin_Dump.cpp index b65b28970..43680ab74 100644 --- a/src/ExchangePlugin/ExchangePlugin_Dump.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Dump.cpp @@ -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);