From: mzn Date: Wed, 24 Jun 2015 06:33:15 +0000 (+0300) Subject: refs #601: avoid using working directory as a temp directory. X-Git-Tag: v1.4.2~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c4c58e798f6c1a1b9d99b24343d46459a94d1c3;p=modules%2Fhydro.git refs #601: avoid using working directory as a temp directory. --- diff --git a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx index 5b948492..9eb098fe 100644 --- a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx +++ b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx @@ -53,6 +53,7 @@ #include #include +#include #include /** @@ -99,7 +100,7 @@ void HYDROGUI_RecognizeContoursOp::startOperation() // Create temporary graphics file QImage aQImage = myImage->Image(); - myTmpImageFile = new QTemporaryFile( anImageName ); + myTmpImageFile = new QTemporaryFile( QDir::tempPath() + QDir::separator() + anImageName ); if ( !myTmpImageFile->open() || !aQImage.save( myTmpImageFile->fileName(), "PNG", 100 ) ) { abort();