Applied patch/bug [ 748226 ] OGL samples does not follow settings from setup.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-05 17:26:35 +00:00
parent c1a23315cd
commit 6999716b96
11 changed files with 31 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ bool csDiagramDocument::OnSaveDocument(const wxString& file)
if (file == "")
return FALSE;
#if wxUSE_PROLOGIO
if (!m_diagram.SaveFile(file))
{
wxString msgTitle;
@@ -72,6 +73,7 @@ bool csDiagramDocument::OnSaveDocument(const wxString& file)
GetDocumentWindow());
return FALSE;
}
#endif
Modify(FALSE);
SetFilename(file);
@@ -90,12 +92,14 @@ bool csDiagramDocument::OnOpenDocument(const wxString& file)
msgTitle = wxString("File error");
m_diagram.DeleteAllShapes();
#if wxUSE_PROLOGIO
if (!m_diagram.LoadFile(file))
{
(void)wxMessageBox("Sorry, could not open this file.", msgTitle, wxOK|wxICON_EXCLAMATION,
GetDocumentWindow());
return FALSE;
}
#endif
SetFilename(file, TRUE);
Modify(FALSE);
UpdateAllViews();