From: mpv Date: Mon, 10 Oct 2016 11:45:26 +0000 (+0300) Subject: Fix for #1831: root directory build but not requested X-Git-Tag: V_2.5.1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=baebe67bf59028a972b781932680cb627b1a3d90;p=modules%2Fshaper.git Fix for #1831: root directory build but not requested --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index fdfaa6f69..852050fd9 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -222,9 +222,9 @@ bool Model_Document::save( Handle(Model_Application) anApp = Model_Application::getApplication(); if (isRoot()) { #ifdef WIN32 - CreateDirectory(theFileName, NULL); + CreateDirectory(theDirName, NULL); #else - mkdir(theFileName, 0x1ff); + mkdir(theDirName, 0x1ff); #endif } // filename in the dir is id of document inside of the given directory