From 7607047a95a8b1cb89e3007138fbb00986067c2b Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Fri, 16 Jun 2023 23:42:45 +0300 Subject: SL-19863 FIXED Items are not copied when attempting to paste into gallery mode --- indra/newview/llinventorygallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llinventorygallery.cpp') 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; } -- cgit v1.2.3