diff --git a/src/xml/XMLWriter.cpp b/src/xml/XMLWriter.cpp index d97160dda..9bf1a9281 100644 --- a/src/xml/XMLWriter.cpp +++ b/src/xml/XMLWriter.cpp @@ -301,7 +301,7 @@ XMLFileWriter::XMLFileWriter( { auto tempPath = wxFileName::CreateTempFileName( outputPath ); if (!wxFFile::Open(tempPath, wxT("wb")) || !IsOpened()) - ThrowException( tempPath, mCaption ); + ThrowException( outputPath, mCaption ); if (mKeepBackup) { int index = 0;