From 9fe6c2db40dd57c72ad91f3ac1e77cc945ff1335 Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 16 Jun 2015 14:15:42 +0300 Subject: [PATCH] refs #524: create data owner in a right way. --- src/HYDROGUI/HYDROGUI_RecognizeContoursOp.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.2