From: Pawel Date: Tue, 17 Jul 2012 12:26:22 +0000 (+0200) Subject: 0023301: Comparing variable to itself in ShapeUpgrade_WireDivide.cxx X-Git-Tag: V6_5_4_beta1~132 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=dede2e21f628eb603361d5ec80180d4f9ce4eb0b;p=occt-copy.git 0023301: Comparing variable to itself in ShapeUpgrade_WireDivide.cxx Fixing self-comparison. --- diff --git a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx index f8ca6d0d89..bf55c99dd2 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx @@ -369,7 +369,7 @@ void ShapeUpgrade_WireDivide::Perform () theSplit2dTool->SetSplitValues (theKnots2d); theSplit2dTool->Perform (Standard_True); Handle(TColStd_HSequenceOfReal) revKnots2d = theSplit2dTool->SplitValues(); - if(revKnots2d->Length()!=revKnots2d->Length()) { + if(revKnots2d->Length()!=theKnots2d->Length()) { isSeam = Standard_False; #ifdef DEB cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << endl;