]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Notebook component visibility in the Object Browser
authorvsr <vsr@opencascade.com>
Mon, 7 Dec 2009 14:07:27 +0000 (14:07 +0000)
committervsr <vsr@opencascade.com>
Mon, 7 Dec 2009 14:07:27 +0000 (14:07 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx

index 4ec0d3b39959b05c5fb8748e23fbfbfb63bf19ab..2eefbe1133477bdfa3cce2f79c3f5ba452c95385 100644 (file)
@@ -85,7 +85,9 @@ SALOMEDSImpl_SComponent SALOMEDSImpl_StudyBuilder::NewComponent(const string& Da
   //Always create component under main label.
   DF_Label L  = _doc->Main();
 
-  DF_Label NL = L.NewChild();
+  // VSR: Temporarily hard-coded using tag 0 for NOTEBOOK since there is no method
+  //      to create component at the pre-defined tag
+  DF_Label NL = DataType == "NOTEBOOK" ? L.FindChild(0, 1) : L.NewChild();
 
   SALOMEDSImpl_AttributeComment::Set(NL, DataType);