From 03770baedb4ddfb2e0345e49b812d98bfdad0694 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Thu, 9 Nov 2023 22:08:39 +0200 Subject: [PATCH] SL-20576 FIXED Viewer crashes when clicking scroll bar after switching views --- indra/newview/llinventorygallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index aea139d273..88bdb074cf 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -1423,7 +1423,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);