- if (_tool == 0) {
- imMManager = this->_brushfilter->GetImageMManager();
- }
- if (_tool == 1) {
- imMManager = this->_fillfilter->GetImageMManager();
- }
- this->_imageUndoRedo->SetURImages(imMManager);
- this->_brushfilter->CleanImageMManager();
- this->_fillfilter->CleanImageMManager();
-}
-//---------------------------------------------------------------------------
-
-void ManualPaintModel::Undo() {
+ if (_tool == 0)
+ {
+ imMManager = this->_brushfilter->GetImageMManager();
+ } // if 0
+ if (_tool == 1)
+ {
+ imMManager = this->_fillfilter->GetImageMManager();
+ } // if 1
+ this->_imageUndoRedo->SetURImages(imMManager);
+ this->_brushfilter->CleanImageMManager();
+ this->_fillfilter->CleanImageMManager();
+}
+//---------------------------------------------------------------------------
+
+void ManualPaintModel::Undo()
+{