summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-11-09 22:08:39 +0200
committerGitHub <noreply@github.com>2023-11-09 22:08:39 +0200
commitbf740d67a6c68a94cc79fd25478bdb6fb6443fa3 (patch)
tree67b13de3adf885f4a63bf03c600095e79f531d25 /indra
parent85c4ea76b9a3193dd338bca5c571b84bebf6b38c (diff)
SL-20576 FIXED Viewer crashes when clicking scroll bar after switching views
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorygallery.cpp2
1 files changed, 1 insertions, 1 deletions
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);