]> git.saurik.com Git - wxWidgets.git/commitdiff
Bug in wxDocument::Save logic corrected, whereby Save didn't save when not
authorJulian Smart <julian@anthemion.co.uk>
Thu, 7 Jun 2001 13:30:54 +0000 (13:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 7 Jun 2001 13:30:54 +0000 (13:30 +0000)
first-time saved

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index 2be69634e84d26fb7c94a107903bd9ea47cc5997..18e348c044006a7b7a0c563b8c793a7368159807 100644 (file)
@@ -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