0029779: Visualization, SelectMgr_SelectableObject - sensitivity change for object...
[occt.git] / src / SelectMgr / SelectMgr_SelectionManager.cxx
index 86e34a1..21392c8 100644 (file)
@@ -957,7 +957,7 @@ void SelectMgr_SelectionManager::SetSelectionSensitivity (const Handle(SelectMgr
   }
 
   const Handle(SelectMgr_Selection)& aSel = theObject->Selection (theMode);
-  if (theObject.IsNull())
+  if (aSel.IsNull())
   {
     return;
   }