From: Cédric Aguerre Date: Tue, 22 Sep 2015 09:10:51 +0000 (+0200) Subject: fix: add presentation to object browser X-Git-Tag: V8_0_0a1~5^2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fd812a1ed5af610f86a54a1f5da2324df9b4587;p=modules%2Fmed.git fix: add presentation to object browser --- diff --git a/src/MEDCalc/cmp/MED.cxx b/src/MEDCalc/cmp/MED.cxx index 9beb6774b..f59f8d308 100644 --- a/src/MEDCalc/cmp/MED.cxx +++ b/src/MEDCalc/cmp/MED.cxx @@ -196,12 +196,13 @@ MED::registerPresentation(SALOMEDS::Study_ptr study, } SALOMEDS::StudyBuilder_var studyBuilder = study->NewBuilder(); + SALOMEDS::UseCaseBuilder_var useCaseBuilder = study->GetUseCaseBuilder(); SALOMEDS::SObject_var soPresentation = studyBuilder->NewObject(soFieldseries); + useCaseBuilder->AppendTo(soPresentation->GetFather(), soPresentation); soPresentation->SetAttrString("AttributeName", name); soPresentation->SetAttrString("AttributePixMap", label); - result = MED_ORB::OP_OK; return result; }