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];
|
char tempFile[400];
|
||||||
wxGetTempFileName("diag", tempFile);
|
wxGetTempFileName("diag", tempFile);
|
||||||
ofstream stream(tempFile);
|
FILE* file = fopen(tempFile, "w");
|
||||||
if (stream.bad())
|
if (! file)
|
||||||
{
|
{
|
||||||
wxEndBusyCursor();
|
wxEndBusyCursor();
|
||||||
delete database;
|
delete database;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
database->Write(stream);
|
database->Write(file);
|
||||||
stream.close();
|
fclose(file);
|
||||||
delete database;
|
delete database;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user