From 7bb8373d7cb746af8814e09373ed89c332e14619 Mon Sep 17 00:00:00 2001
From: paulgproductengine <none@none>
Date: Tue, 14 Feb 2012 20:08:10 +0200
Subject: [PATCH] EXP-1546 FIXED (received items - purchasing some bodyparts
 and clothing from a prim marked for sale show wrong inventory icons)

- In buy floater, for multiple WEARABLES inventory items show corresponding wearable icons
---
 indra/newview/llfloaterbuycontents.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llfloaterbuycontents.cpp b/indra/newview/llfloaterbuycontents.cpp
index a7388d21a37..bca4b5e4471 100644
--- a/indra/newview/llfloaterbuycontents.cpp
+++ b/indra/newview/llfloaterbuycontents.cpp
@@ -210,7 +210,9 @@ void LLFloaterBuyContents::inventoryChanged(LLViewerObject* obj,
 		LLSD row;
 
 		BOOL item_is_multi = FALSE;
-		if ( inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_LANDMARK_VISITED )
+		if ((inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_LANDMARK_VISITED
+			|| inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS)
+			&& !(inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_WEARABLES_MASK))
 		{
 			item_is_multi = TRUE;
 		}
-- 
GitLab