From f33fdfb7bbe5fb3c47a33e98fee099256b10b6f4 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 3 Sep 2015 16:23:50 +0300 Subject: [PATCH] Debug of update of feature that need no preview --- src/Model/Model_Update.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 116a55daf..eed45d304 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -310,7 +310,13 @@ void Model_Update::updateFeature(FeaturePtr theFeature) } // only the currently updated features are executed - bool aJustUpdated = myUpdated.find(theFeature) != myUpdated.end() && myUpdated[theFeature] == myModification; + bool aJustUpdated = myUpdated.find(theFeature) != myUpdated.end(); + if (aJustUpdated) { + // if preview is not needed, the created feature was not updated before, so, myModification is not actual for this + if (theFeature->isPreviewNeeded()) { + aJustUpdated = myUpdated[theFeature] == myModification; + } + } if (myIsAutomatic && theFeature->data()->execState() == ModelAPI_StateMustBeUpdated) aJustUpdated = true; -- 2.39.2