From 70e5fad08976dd113a2dd1d278867d1d1192e43c Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 10 Jan 2019 16:32:18 +0300 Subject: [PATCH] Fix for the issue #2831 : In Split and Trim, the segment is not highlighted --- src/Model/Model_Data.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index cd3cf88cc..e3db875e3 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -335,6 +335,12 @@ void Model_Data::sendAttributeUpdated(ModelAPI_Attribute* theAttr) if (myWasChangedButBlocked.empty() || *(myWasChangedButBlocked.rbegin()) != theAttr) myWasChangedButBlocked.push_back(theAttr); } + } else { + // trim: need to redisplay + if (myObject && theAttr->attributeType() == "Point2D") { + static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY); + ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent); + } } } -- 2.39.2