From ed9f4e67b51855675fa7b43a9673cfd972e224e8 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 27 Nov 2013 12:23:43 +0000 Subject: [PATCH] Implementation of the "22390: [CEA 967] Latency enhancement after a selection of a displayed object" issue. --- src/GEOMGUI/GEOMGUI_OCCSelector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOMGUI/GEOMGUI_OCCSelector.cxx b/src/GEOMGUI/GEOMGUI_OCCSelector.cxx index 25ef6cbc9..faf21e358 100644 --- a/src/GEOMGUI/GEOMGUI_OCCSelector.cxx +++ b/src/GEOMGUI/GEOMGUI_OCCSelector.cxx @@ -195,7 +195,7 @@ static void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj, void GEOMGUI_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList ) { OCCViewer_Viewer* vw = viewer(); - if ( !vw ) + if ( !vw || !vw->isSelectionEnabled()) return; SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr(); -- 2.39.2