From 5fd812a1ed5af610f86a54a1f5da2324df9b4587 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Tue, 22 Sep 2015 11:10:51 +0200 Subject: [PATCH] fix: add presentation to object browser --- src/MEDCalc/cmp/MED.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2