From b476213a1d10a3776a0b8ed78ec90a11768816e3 Mon Sep 17 00:00:00 2001
From: Pawel <pawel-kowalski@wp.pl>
Date: Tue, 17 Jul 2012 14:21:01 +0200
Subject: [PATCH] 0023299: ShapeCustom_BSplineRestriction.cxx: line 732 -
 identical sub-expression in 'if-clause'

Verifying both affected variables in the if-clause.
---
 src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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--;
         }