0030302: XCAF - Typo in XCAFDoc_GeomTolerance OCCT-740beta2 V7_4_0_beta
authorgka <gka@opencascade.com>
Thu, 12 Sep 2019 12:21:19 +0000 (15:21 +0300)
committerabv <abv@opencascade.com>
Sat, 14 Sep 2019 08:45:37 +0000 (11:45 +0300)
Typo in the XCAFDoc_GeomTolerance.cxx where Loc is used instead of aPnt was corrected.

src/XCAFDoc/XCAFDoc_GeomTolerance.cxx

index f1e6d239c1bc0ee0ebb4d6f17e5614ae62817c61..2355b2691e55690a21fad66b941e59ce34bc314a 100644 (file)
@@ -345,7 +345,7 @@ Handle(XCAFDimTolObjects_GeomToleranceObject) XCAFDoc_GeomTolerance::GetObject()
   Handle(TDataStd_RealArray) aPnt;
   if (Label().FindChild(ChildLab_Pnt).FindAttribute(TDataStd_RealArray::GetID(), aPnt) && aPnt->Length() == 3)
   {
-    gp_Pnt aP(aLoc->Value(aPnt->Lower()), aPnt->Value(aPnt->Lower() + 1), aPnt->Value(aPnt->Lower() + 2));
+    gp_Pnt aP(aPnt->Value(aPnt->Lower()), aPnt->Value(aPnt->Lower() + 1), aPnt->Value(aPnt->Lower() + 2));
     anObj->SetPoint(aP);
   }