INT PAL 0052437: Manage dimentions with arguments "Parallel edges" does not work correctly

This commit is contained in:
mpa 2014-07-15 12:55:05 +04:00
parent 477e6586c0
commit c32371db75

View File

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