From: ika Date: Fri, 28 Oct 2016 12:51:58 +0000 (+0300) Subject: 0028014: PMIVis - some tolerances are attached to points out of the models X-Git-Tag: V7_1_0_beta~35 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4a6d278356de9b3c059e29bb4ebd8b3d149394c7;p=occt.git 0028014: PMIVis - some tolerances are attached to points out of the models Fix a misprint. --- diff --git a/src/XCAFDoc/XCAFDoc_GeomTolerance.cxx b/src/XCAFDoc/XCAFDoc_GeomTolerance.cxx index c5ed6315c7..0dc6236238 100644 --- a/src/XCAFDoc/XCAFDoc_GeomTolerance.cxx +++ b/src/XCAFDoc/XCAFDoc_GeomTolerance.cxx @@ -342,7 +342,7 @@ Handle(XCAFDimTolObjects_GeomToleranceObject) XCAFDoc_GeomTolerance::GetObject() } Handle(TDataStd_RealArray) aPnt; - if(Label().FindChild(ChildLab_PlaneLoc).FindAttribute(TDataStd_RealArray::GetID(), aPnt) && aPnt->Length() == 3 ) + 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)); anObj->SetPoint(aP);