1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0023315: Duplicate comarison in an if-clause ib Prs2d_ToleranceFrame.cxx

Testing the length of 'myTxt2'  instead of 'myTxt1' twice.
This commit is contained in:
Pawel 2012-07-18 10:44:57 +02:00 committed by Pawel Kowalski
parent be10f7a868
commit 3f6213c322

View File

@ -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 );