]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052437: Manage dimentions with arguments "Parallel edges" does not work...
authormpa <mpa@opencascade.com>
Tue, 15 Jul 2014 08:55:05 +0000 (12:55 +0400)
committermpa <mpa@opencascade.com>
Tue, 15 Jul 2014 08:55:05 +0000 (12:55 +0400)
src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx

index 9ae10135add8b40418cf4b5687887f7d8c469c95..b571b61c776f726e4a190372c7033a7e01ebee3f 100644 (file)
@@ -407,6 +407,9 @@ Handle(AIS_LengthDimension) MeasureGUI_DimensionCreateTool::LengthByParallelEdge
     return NULL;
   }
 
+  if( aFirstSh == aSecondSh )
+    return NULL;
+
   TopoDS_Edge aFirstEdge  = TopoDS::Edge( aFirstSh );
   TopoDS_Edge aSecondEdge = TopoDS::Edge( aSecondSh );