From bf740d67a6c68a94cc79fd25478bdb6fb6443fa3 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Thu, 9 Nov 2023 22:08:39 +0200 Subject: SL-20576 FIXED Viewer crashes when clicking scroll bar after switching views --- indra/newview/llinventorygallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index d5fce2cda7..ad6c3909ef 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -1435,7 +1435,7 @@ void LLInventoryGallery::onFocusReceived() LLInventoryGalleryItem* focus_item = NULL; for (const LLUUID& id : mSelectedItemIDs) { - if (mItemMap[id]) + if (mItemMap[id] && !mItemMap[id]->isHidden()) { focus_item = mItemMap[id]; focus_item->setSelected(true); -- cgit v1.2.3