From c32371db75711f7df7f34f5596dec265c1f60ac7 Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 15 Jul 2014 12:55:05 +0400 Subject: [PATCH] INT PAL 0052437: Manage dimentions with arguments "Parallel edges" does not work correctly --- src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.2