]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
SALOME porting: highlight should be cleared in the viewer
authornds <natalia.donis@opencascade.com>
Wed, 24 Jun 2015 13:11:03 +0000 (16:11 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 24 Jun 2015 13:14:55 +0000 (16:14 +0300)
Multi selection crash remove.

src/PartSet/PartSet_WidgetMultiSelector.cpp
src/SketcherPrs/SketcherPrs_SymbolPrs.cpp

index 60b2573e7433877b2e77f83ab66a027b0757dbed..fbce745f6b8e1311db77e51f305a8da73b03ddae 100644 (file)
@@ -109,9 +109,9 @@ void PartSet_WidgetMultiSelector::getGeomSelection(const ModuleBase_ViewerPrs& t
     }
     if (aShape.get() != NULL && !aShape->isNull()) {
       if (myIsInVaildate)
-        theObject = myExternalObjectMgr->externalObjectValidated(theObject, theShape, sketch());
+        theObject = myExternalObjectMgr->externalObjectValidated(theObject, aShape, sketch());
       else
-        theObject = myExternalObjectMgr->externalObject(theObject, theShape, sketch());
+        theObject = myExternalObjectMgr->externalObject(theObject, aShape, sketch());
     }
   }
 }
index adc71b67bbadcaba0f17ada42ccdb798228c3e7c..77b40fc8be0a23bfca4239792257ebb17ee31c2d 100644 (file)
@@ -379,7 +379,7 @@ void SketcherPrs_SymbolPrs::Compute(const Handle(PrsMgr_PresentationManager3d)&
 void SketcherPrs_SymbolPrs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
                                             const Standard_Integer aMode)
 {
-  //ClearSelected();
+  ClearSelected();
   if ((aMode == 0) || (aMode == SketcherPrs_Tools::Sel_Constraint)) {
     for (int i = 1; i <= mySPoints.Length(); i++)
       aSelection->Add(mySPoints.Value(i));