DocView and wxStream things
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -285,7 +285,7 @@ bool wxDocument::OnSaveDocument(const wxString& file)
|
||||
if (store.fail() || store.bad())
|
||||
#else
|
||||
wxFileOutputStream store(file.fn_str());
|
||||
if (store.LastError() == 0)
|
||||
if (store.LastError() != 0)
|
||||
#endif
|
||||
{
|
||||
(void)wxMessageBox(_("Sorry, could not open this file for saving."), msgTitle, wxOK | wxICON_EXCLAMATION,
|
||||
@@ -321,7 +321,7 @@ bool wxDocument::OnOpenDocument(const wxString& file)
|
||||
if (store.fail() || store.bad())
|
||||
#else
|
||||
wxFileInputStream store(file.fn_str());
|
||||
if (store.LastError() == 0)
|
||||
if (store.LastError() != 0)
|
||||
#endif
|
||||
{
|
||||
(void)wxMessageBox(_("Sorry, could not open this file."), msgTitle, wxOK|wxICON_EXCLAMATION,
|
||||
|
Reference in New Issue
Block a user