0023349: There are identical sub-expressions 'aS1.ShapeType() != TopAbs_FACE' to the left and to the right of the '||' operator.

The same shape was checked twice if it was a face. The other shape was omitted instead.
This commit is contained in:
Pawel
2012-08-10 10:52:10 +04:00
committed by Pawel Kowalski
parent 8fb480b35a
commit b2d4add4b8
+2 -2
View File
@@ -1508,7 +1508,7 @@ Standard_Integer bopsinf (Draw_Interpretor& di,
}
if (aS1.ShapeType()!=TopAbs_FACE ||
aS1.ShapeType()!=TopAbs_FACE ) {
aS2.ShapeType()!=TopAbs_FACE ) {
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
return 0;
@@ -1570,7 +1570,7 @@ Standard_Integer bopsonf (Draw_Interpretor& di,
}
if (aS1.ShapeType()!=TopAbs_FACE ||
aS1.ShapeType()!=TopAbs_FACE ) {
aS2.ShapeType()!=TopAbs_FACE ) {
//printf(" Shapes #%d #%d are not faces\n", nF1, nF2 );
di << " Shapes #" << nF1 << " #" << nF2 << " are not faces\n";
return 0;