diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index 872f3814f7bb8dd3ce4946236f982757280bea4e..10e5ba2d1ffb8dd3a258d58c89635ddf925601f7 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);