From fd746d30503492c3ccfaac2f1e98e14bcfe1664f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 7 Jun 2001 13:30:54 +0000 Subject: [PATCH] Bug in wxDocument::Save logic corrected, whereby Save didn't save when not first-time saved git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 2be69634e8..18e348c044 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -230,7 +230,7 @@ bool wxDocument::Save() { bool ret = FALSE; - if (!IsModified()) return TRUE; + if (!IsModified() && m_savedYet) return TRUE; if (m_documentFile == wxT("") || !m_savedYet) ret = SaveAs(); else