]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Mon, 12 Dec 2005 12:57:30 +0000 (12:57 +0000)
committerapo <apo@opencascade.com>
Mon, 12 Dec 2005 12:57:30 +0000 (12:57 +0000)
src/VISUGUI/VisuGUI.cxx
src/VISUGUI/VisuGUI_Prs3dTools.h

index fab7a980cbc91e1f1ee206dfb50edb060aaa0271..2f4191ef08e37f3e258e742e8077e376ec546d9d 100644 (file)
@@ -421,7 +421,8 @@ CreateCurves( SalomeApp_Module* theModule,
       if ( aTblObj ) {
         _PTR(GenericAttribute) anAttr;
         if (aTblObj->FindAttribute( anAttr, "AttributeName" ) ) {
-          aBuilder->RemoveObjectWithChildren( aIter->Value() ); // We should have only one child
+          aBuilder->RemoveObjectWithChildren( aTblObj ); // We should have only one child
+         UpdateObjBrowser(theModule,true,aTblObj);
           break;
         }
       }
index 1d255f2277d8f15369fc2ebc797f58f231d03362..9af013e18f193b872ad996d15d9af0b7c1e1e038 100644 (file)
@@ -163,6 +163,7 @@ namespace VISU
                            dynamic_cast<VISU::CutLines_i*>( aPrs3d ),
                            aDlg,
                            true ); // in creation mode
+             UpdateObjBrowser(theModule,true,theTimeStamp);
              QApplication::restoreOverrideCursor();
              delete aDlg;
            } else {
@@ -200,7 +201,6 @@ namespace VISU
       return;
     
     theModule->application()->putInfo(QObject::tr("INF_DONE"));
-    UpdateObjBrowser(theModule,true,aTimeStampSObj);
     
     typedef typename TViewer::TViewWindow TView;
     if(TView* aView = GetViewWindow<TViewer>(theModule,theIsCreateView))