From 3bc292c16a242d639a24315ce6260d29e9d88e28 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 15 Jun 2020 18:47:42 +0300 Subject: [PATCH] bos #19219 [CEA] SIGSEGV when right-click in the view in 3D layers dialog box --- src/LightApp/LightApp_Selection.cxx | 5 +++-- src/LightApp/LightApp_Selection.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.39.2