SL-20576 FIXED Viewer crashes when clicking scroll bar after switching views

meow-7.2.2
Maxim Nikolenko 2023-11-09 22:08:39 +02:00 committed by Ansariel
parent b7eb1f9eb8
commit 03770baedb
1 changed files with 1 additions and 1 deletions

View File

@ -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);