From 6fa0f312c60e81c2277a27a61ac5dfbe0a42a435 Mon Sep 17 00:00:00 2001 From: ika Date: Thu, 22 Oct 2015 13:41:35 +0300 Subject: [PATCH] Fix compilation errors. --- ...p.cxx => StepRepr_FeatureForDatumTargetRelationship.cxx} | 0 ...p.hxx => StepRepr_FeatureForDatumTargetRelationship.hxx} | 0 src/XCAFDoc/XCAFDoc_Datum.cxx | 6 +++++- 3 files changed, 5 insertions(+), 1 deletion(-) rename src/StepRepr/{StepRepr_FeatureForDatumtargetRelationship.cxx => StepRepr_FeatureForDatumTargetRelationship.cxx} (100%) rename src/StepRepr/{StepRepr_FeatureForDatumtargetRelationship.hxx => StepRepr_FeatureForDatumTargetRelationship.hxx} (100%) diff --git a/src/StepRepr/StepRepr_FeatureForDatumtargetRelationship.cxx b/src/StepRepr/StepRepr_FeatureForDatumTargetRelationship.cxx similarity index 100% rename from src/StepRepr/StepRepr_FeatureForDatumtargetRelationship.cxx rename to src/StepRepr/StepRepr_FeatureForDatumTargetRelationship.cxx diff --git a/src/StepRepr/StepRepr_FeatureForDatumtargetRelationship.hxx b/src/StepRepr/StepRepr_FeatureForDatumTargetRelationship.hxx similarity index 100% rename from src/StepRepr/StepRepr_FeatureForDatumtargetRelationship.hxx rename to src/StepRepr/StepRepr_FeatureForDatumTargetRelationship.hxx diff --git a/src/XCAFDoc/XCAFDoc_Datum.cxx b/src/XCAFDoc/XCAFDoc_Datum.cxx index 666b30cebf..3e7a07a50b 100644 --- a/src/XCAFDoc/XCAFDoc_Datum.cxx +++ b/src/XCAFDoc/XCAFDoc_Datum.cxx @@ -309,8 +309,12 @@ Handle(XCAFDimTolObjects_DatumObject) XCAFDoc_Datum::GetObject() const { anObj->IsDatumTarget((aIsDTarget->Get() != 0)); } + else + { + return anObj; + } - if (aIsDTarget != 0) + if (aIsDTarget->Get() != 0) { Handle(TDataStd_Integer) aDTargetType; if(Label().FindChild(ChildLab_DTargetType).FindAttribute(TDataStd_Integer::GetID(), aDTargetType)) -- 2.39.5