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