Skip to content

Commit

Permalink
Fixed bug where saving notepad windows didn't work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 26, 2010
1 parent b4128d4 commit 5e97cdf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TextView.cpp
Expand Up @@ -231,9 +231,11 @@ void CTextView::SerializeRaw(CArchive& ar)
ASSERT_VALID(this);

if (ar.IsStoring())
{
WriteToArchive(ar);
}
{
CString strContents;
GetEditCtrl().GetWindowText (strContents);
ar.Write(strContents, strContents.GetLength ());
}
else
{
CFile* pFile = ar.GetFile();
Expand Down

0 comments on commit 5e97cdf

Please sign in to comment.