0023301: Comparing variable to itself in ShapeUpgrade_WireDivide.cxx
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_WireDivide.cxx
index f8ca6d0..bf55c99 100755 (executable)
@@ -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;