Use a local tmp file for plotting

Fix #5238
This commit is contained in:
Marek Roszko
2020-08-20 16:23:51 +00:00
committed by Mark Roszko
parent c14065ee98
commit de7a1b647c
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ int PDF_PLOTTER::startPdfStream(int handle)
"stream\n", handle + 1 );
// Open a temporary file to accumulate the stream
workFilename = filename + wxT(".tmp");
workFilename = wxFileName::CreateTempFileName( "" );
workFile = wxFopen( workFilename, wxT( "w+b" ));
wxASSERT( workFile );
return handle;