]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #524: create data owner in a right way.
authormzn <mzn@opencascade.com>
Tue, 16 Jun 2015 11:15:42 +0000 (14:15 +0300)
committermzn <mzn@opencascade.com>
Tue, 16 Jun 2015 11:15:42 +0000 (14:15 +0300)
src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx

index 2bee9b76568d36e848f24979752ee160d8290baf..5b948492903d2dc07586918d1808e1d4461c25db 100644 (file)
@@ -141,10 +141,10 @@ void HYDROGUI_RecognizeContoursOp::startOperation()
       // update the object browser
       module()->getApp()->updateObjectBrowser( true );
 
-      // select the picture
-      SUIT_DataOwnerPtrList aList( true );
-      aList.append( SUIT_DataOwnerPtr( new LightApp_DataOwner( aGeomPictureEntry ) ) );
-      selectionMgr()->setSelected(aList );
+      // browse the published GEOM picture
+      QStringList anEntries;
+      anEntries << aGeomPictureEntry;
+      browseObjects( anEntries );
 
       // Add GEOM picture object entry to the list of temporary geom objects
       myTmpGeomObjects << aGeomPictureEntry;