Now passes FILE* to wxExprDatabase instead of ofstream to compy with recent
changes in wxExprDatabase. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -255,16 +255,16 @@ bool wxDiagram::SaveFile(const wxString& filename)
|
||||
|
||||
char tempFile[400];
|
||||
wxGetTempFileName("diag", tempFile);
|
||||
ofstream stream(tempFile);
|
||||
if (stream.bad())
|
||||
FILE* file = fopen(tempFile, "w");
|
||||
if (! file)
|
||||
{
|
||||
wxEndBusyCursor();
|
||||
delete database;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
database->Write(stream);
|
||||
stream.close();
|
||||
database->Write(file);
|
||||
fclose(file);
|
||||
delete database;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user