Author: bfreisen
Date: Thu Jul 23 07:48:32 2015
New Revision: 68563
URL:
http://svn.reactos.org/svn/reactos?rev=68563&view=rev
Log:
[MSPAINT_NEW] initialize ImageModel member variables
Modified:
trunk/reactos/base/applications/mspaint_new/history.cpp
trunk/reactos/base/applications/mspaint_new/history.h
Modified: trunk/reactos/base/applications/mspaint_new/history.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint_…
==============================================================================
--- trunk/reactos/base/applications/mspaint_new/history.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint_new/history.cpp [iso-8859-1] Thu Jul 23
07:48:32 2015
@@ -20,6 +20,14 @@
void ImageModel::NotifyImageChanged()
{
imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
+}
+
+ImageModel::ImageModel()
+{
+ currInd = 0;
+ undoSteps = 0;
+ redoSteps = 0;
+ imageSaved = TRUE;
}
void ImageModel::CopyPrevious()
Modified: trunk/reactos/base/applications/mspaint_new/history.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint_…
==============================================================================
--- trunk/reactos/base/applications/mspaint_new/history.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint_new/history.h [iso-8859-1] Thu Jul 23 07:48:32
2015
@@ -18,6 +18,7 @@
int redoSteps;
BOOL imageSaved;
+ ImageModel();
void CopyPrevious(void);
void Undo(void);
void Redo(void);