From: mzn Date: Tue, 16 Jun 2015 11:15:42 +0000 (+0300) Subject: refs #524: create data owner in a right way. X-Git-Tag: v1.4.2~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9fe6c2db40dd57c72ad91f3ac1e77cc945ff1335;p=modules%2Fhydro.git refs #524: create data owner in a right way. --- diff --git a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx index 2bee9b76..5b948492 100644 --- a/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx +++ b/src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx @@ -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;