[MSPAINT_NEW] initialize ImageModel member variables

svn path=/trunk/; revision=68563
This commit is contained in:
Benedikt Freisen 2015-07-23 07:48:32 +00:00
parent 4317118d34
commit 6fd38c7880
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,14 @@ void ImageModel::NotifyImageChanged()
imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
}
ImageModel::ImageModel()
{
currInd = 0;
undoSteps = 0;
redoSteps = 0;
imageSaved = TRUE;
}
void ImageModel::CopyPrevious()
{
DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]);

View file

@ -18,6 +18,7 @@ public:
int redoSteps;
BOOL imageSaved;
ImageModel();
void CopyPrevious(void);
void Undo(void);
void Redo(void);