]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
fix: add presentation to object browser
authorCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 22 Sep 2015 09:10:51 +0000 (11:10 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 22 Sep 2015 09:10:51 +0000 (11:10 +0200)
src/MEDCalc/cmp/MED.cxx

index 9beb6774bd6306e1ec1295eb2a562018584f4039..f59f8d308ed148c4ce1a30ee92663b7c1d817526 100644 (file)
@@ -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;
 }