0022943: Bug TDataXtd_PatternStd
[occt.git] / src / TDataXtd / TDataXtd_PatternStd.cxx
index 064a826..8f8a442 100755 (executable)
@@ -188,8 +188,8 @@ void TDataXtd_PatternStd::NbInstances1(const Handle(TDataStd_Integer)& NbInstanc
 void TDataXtd_PatternStd::NbInstances2(const Handle(TDataStd_Integer)& NbInstances2) 
 {
   // OCC2932 correction
-  if(!myNb1.IsNull())
-    if(myNb1->Get() == NbInstances2->Get())
+  if(!myNb2.IsNull())
+    if(myNb2->Get() == NbInstances2->Get())
       return;
 
   Backup();