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
This commit is contained in:
Julian Smart 2001-06-07 13:30:54 +00:00
parent b6b1d47f2c
commit fd746d3050

View File

@ -230,7 +230,7 @@ bool wxDocument::Save()
{ {
bool ret = FALSE; bool ret = FALSE;
if (!IsModified()) return TRUE; if (!IsModified() && m_savedYet) return TRUE;
if (m_documentFile == wxT("") || !m_savedYet) if (m_documentFile == wxT("") || !m_savedYet)
ret = SaveAs(); ret = SaveAs();
else else