summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallery.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-06-16 23:42:45 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-06-16 23:42:45 +0300
commit7607047a95a8b1cb89e3007138fbb00986067c2b (patch)
treea44939037302cc6f3204a83de6e107cdcd079197 /indra/newview/llinventorygallery.cpp
parentf1ff6c7ec131d0058333070f52e63365229af4d2 (diff)
SL-19863 FIXED Items are not copied when attempting to paste into gallery mode
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-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 200a9b2a91..f81beefc28 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -1315,7 +1315,7 @@ void LLInventoryGallery::paste()
}
const LLUUID& marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS);
- if (gInventory.isObjectDescendentOf(mSelectedItemID, marketplacelistings_id))
+ if (!mSelectedItemID.isNull() && gInventory.isObjectDescendentOf(mSelectedItemID, marketplacelistings_id))
{
return;
}