From: nds Date: Thu, 3 Nov 2005 07:12:06 +0000 (+0000) Subject: Correct function createEmptyStudy() X-Git-Tag: V3_1_0a3~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60fb01380c0d22e25096efcb92b2f3e7431abd24;p=modules%2Fgui.git Correct function createEmptyStudy() --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 171a2cb1b..057804d7d 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -468,12 +468,4 @@ void CAM_Application::createEmptyStudy() SUIT_Study* study = activeStudy(); STD_Application::createEmptyStudy(); - - SUIT_Study* newStudy = activeStudy(); - if ( study != newStudy ) - { - CAM_Study* camStudy = dynamic_cast( newStudy ); - for ( ModuleListIterator it( myModules ); it.current(); ++it ) - camStudy->insertDataModel( it.current()->dataModel() ); - } }