From 9c4c58e798f6c1a1b9d99b24343d46459a94d1c3 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 24 Jun 2015 09:33:15 +0300 Subject: [PATCH] refs #601: avoid using working directory as a temp directory. --- src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2