Skip to content

Commit 5e97cdf

Browse files
committed
Fixed bug where saving notepad windows didn't work correctly
1 parent b4128d4 commit 5e97cdf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

TextView.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ void CTextView::SerializeRaw(CArchive& ar)
231231
ASSERT_VALID(this);
232232

233233
if (ar.IsStoring())
234-
{
235-
WriteToArchive(ar);
236-
}
234+
{
235+
CString strContents;
236+
GetEditCtrl().GetWindowText (strContents);
237+
ar.Write(strContents, strContents.GetLength ());
238+
}
237239
else
238240
{
239241
CFile* pFile = ar.GetFile();

0 commit comments

Comments
 (0)