From: mpa Date: Tue, 15 Jul 2014 08:55:05 +0000 (+0400) Subject: INT PAL 0052437: Manage dimentions with arguments "Parallel edges" does not work... X-Git-Tag: V7_5_0a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c32371db75711f7df7f34f5596dec265c1f60ac7;p=modules%2Fgeom.git INT PAL 0052437: Manage dimentions with arguments "Parallel edges" does not work correctly --- diff --git a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx index 9ae10135a..b571b61c7 100644 --- a/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx +++ b/src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx @@ -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 );