From: Pawel Date: Tue, 17 Jul 2012 12:21:01 +0000 (+0200) Subject: 0023299: ShapeCustom_BSplineRestriction.cxx: line 732 - identical sub-expression... X-Git-Tag: V6_5_4_beta1~131 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=b476213a1d10a3776a0b8ed78ec90a11768816e3;p=occt-copy.git 0023299: ShapeCustom_BSplineRestriction.cxx: line 732 - identical sub-expression in 'if-clause' Verifying both affected variables in the if-clause. --- diff --git a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx index 29db7cf7f9..fd2ba0819a 100755 --- a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx +++ b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx @@ -729,7 +729,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo if(myDeg) { if(MaxSeg < myParameters->GMaxSeg()){ - if(aCV != 0 || aCV != 0) { + if(aCV != 0 || aCU != 0) { if(aCV > 0) aCV--; if(aCU > 0) aCU--; }