From: vsr Date: Mon, 7 Dec 2009 14:07:27 +0000 (+0000) Subject: Notebook component visibility in the Object Browser X-Git-Tag: PHASE_17_Part1_V3~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3d2e04012cb4036df53cead0528a6b3244c4d53;p=modules%2Fkernel.git Notebook component visibility in the Object Browser --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx index 4ec0d3b39..2eefbe113 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx @@ -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);