[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); imageArea.SendMessage(WM_IMAGEMODELIMAGECHANGED);
} }
ImageModel::ImageModel()
{
currInd = 0;
undoSteps = 0;
redoSteps = 0;
imageSaved = TRUE;
}
void ImageModel::CopyPrevious() void ImageModel::CopyPrevious()
{ {
DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]); DeleteObject(hBms[(currInd + 1) % HISTORYSIZE]);

View file

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