]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1721 Selecting arcs in mirror constraint is too long and removes other edges
authornds <nds@opencascade.com>
Wed, 7 Sep 2016 12:11:49 +0000 (15:11 +0300)
committernds <nds@opencascade.com>
Wed, 7 Sep 2016 12:12:03 +0000 (15:12 +0300)
Reason: Redisplay for not-modified AIS presentation is called, that led to selection lost.

src/SketchPlugin/SketchPlugin_SketchEntity.h

index 1fd0472f71c1b6f36f5d99dcf12d5c33cd23dc76..a29b09695f9772966e508297f519b57fed08d151 100644 (file)
@@ -110,7 +110,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
     std::vector<int> aPrevColor;
     aPrevColor.resize(3);
     thePrs->getColor(aPrevColor[0], aPrevColor[1], aPrevColor[2]);
-    {
+    if (theResult.get()) {
       std::string aSection, aName, aDefault;
       theResult->colorConfigInfo(aSection, aName, aDefault);
       std::vector<int> aColor;