From 3f6213c322e9faca12034fadc2fb8d9b694c3946 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 18 Jul 2012 10:44:57 +0200 Subject: [PATCH] 0023315: Duplicate comarison in an if-clause ib Prs2d_ToleranceFrame.cxx Testing the length of 'myTxt2' instead of 'myTxt1' twice. --- src/Prs2d/Prs2d_ToleranceFrame.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Prs2d/Prs2d_ToleranceFrame.cxx b/src/Prs2d/Prs2d_ToleranceFrame.cxx index d867faa56e..15b383ad56 100755 --- a/src/Prs2d/Prs2d_ToleranceFrame.cxx +++ b/src/Prs2d/Prs2d_ToleranceFrame.cxx @@ -192,7 +192,7 @@ void Prs2d_ToleranceFrame::Draw( const Handle(Graphic2d_Drawer)& aDrawer ) { //------------additional text's cells - if ( myTolTxt.Length() || myTxt1.Length() || myTxt1.Length() ) { + if ( myTolTxt.Length() || myTxt1.Length() || myTxt2.Length() ) { gp_Pnt2d PntP( myX, myY ); gp_Vec2d theV1( gp_Pnt2d( myX, myY - myHeight/2 ), PntP ); theV1.Rotate( myAngle );