From: mpv Date: Thu, 10 Jan 2019 13:32:18 +0000 (+0300) Subject: Fix for the issue #2831 : In Split and Trim, the segment is not highlighted X-Git-Tag: Jan2019~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70e5fad08976dd113a2dd1d278867d1d1192e43c;p=modules%2Fshaper.git Fix for the issue #2831 : In Split and Trim, the segment is not highlighted --- 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); + } } }