From: vsr Date: Mon, 15 Jun 2020 15:47:42 +0000 (+0300) Subject: bos #19219 [CEA] SIGSEGV when right-click in the view in 3D layers dialog box X-Git-Tag: V9_5_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bc292c16a242d639a24315ce6260d29e9d88e28;p=modules%2Fgui.git bos #19219 [CEA] SIGSEGV when right-click in the view in 3D layers dialog box --- diff --git a/src/LightApp/LightApp_Selection.cxx b/src/LightApp/LightApp_Selection.cxx index 45c81f6e3..b5b6ec743 100644 --- a/src/LightApp/LightApp_Selection.cxx +++ b/src/LightApp/LightApp_Selection.cxx @@ -102,8 +102,9 @@ void LightApp_Selection::init( const QString& client, LightApp_SelectionMgr* mgr entries.insert( entry ); - setObjectInfo( num, OI_Entry, entry ); - setObjectInfo( num, OI_Reference, sowner->entry() != entry ); + setObjectInfo( num, OI_Entry, entry ); + setObjectInfo( num, OI_Reference, sowner->entry() != entry ); + setObjectInfo( num, OI_RefEntry, sowner->entry() ); if ( processOwner( sowner ) ) num++; diff --git a/src/LightApp/LightApp_Selection.h b/src/LightApp/LightApp_Selection.h index 51f68e1e3..82647bef7 100644 --- a/src/LightApp/LightApp_Selection.h +++ b/src/LightApp/LightApp_Selection.h @@ -45,7 +45,7 @@ class SUIT_ViewWindow; class LIGHTAPP_EXPORT LightApp_Selection : public QtxPopupSelection { protected: - typedef enum { OI_Entry, OI_Reference, OI_User } ObjectInformation; + typedef enum { OI_Entry, OI_Reference, OI_RefEntry, OI_User } ObjectInformation; public: LightApp_Selection();