mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024177: Eliminate CLang compiler warning -Wlogical-op-parentheses (&& within ||)
Some fixes to eliminate warning
This commit is contained in:
@@ -1094,7 +1094,7 @@ void AIS_LengthDimension::ComputeFaceSelection( const Handle( SelectMgr_Selectio
|
||||
gp_Lin LengthLine( myPosition, DirOfArrow1 );
|
||||
Standard_Real Par1 = ElCLib::Parameter( LengthLine, EndOfArrow1 );
|
||||
Standard_Real Par2 = ElCLib::Parameter( LengthLine, EndOfArrow2 );
|
||||
if (Par1 > 0.0 && Par2 > 0.0 || Par1 < 0.0 && Par2 < 0.0)
|
||||
if ((Par1 > 0.0 && Par2 > 0.0) || (Par1 < 0.0 && Par2 < 0.0))
|
||||
{
|
||||
FirstPoint = myPosition;
|
||||
LastPoint = (Abs( Par1 ) > Abs( Par2 ))? EndOfArrow1 : EndOfArrow2;
|
||||
|
Reference in New Issue
Block a user