# HG changeset patch
# User Kitty Barnett <develop@catznip.com>
# Date 1290018178 -3600
# Node ID 1235014c3ba9f508ca1464130fffe08ee6b40915
# Parent  d25cb9d578199b2a6d072ad98082557d3110a611
Follow up fix for STORM-288

diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp
--- a/indra/newview/llsidepaneliteminfo.cpp
+++ b/indra/newview/llsidepaneliteminfo.cpp
@@ -69,16 +69,16 @@ private:
 void LLItemPropertiesObserver::changed(U32 mask)
 {
 	const std::set<LLUUID>& mChangedItemIDs = gInventory.getChangedIDs();
 	std::set<LLUUID>::const_iterator it;
 
-	const LLUUID& object_id = mFloater->getObjectID();
+	const LLUUID& item_id = mFloater->getItemID();
 
 	for (it = mChangedItemIDs.begin(); it != mChangedItemIDs.end(); it++)
 	{
 		// set dirty for 'item profile panel' only if changed item is the item for which 'item profile panel' is shown (STORM-288)
-		if (*it == object_id)
+		if (*it == item_id)
 		{
 			// if there's a change we're interested in.
 			if((mask & (LLInventoryObserver::LABEL | LLInventoryObserver::INTERNAL | LLInventoryObserver::REMOVE)) != 0)
 			{
 				mFloater->dirty();
@@ -194,10 +194,15 @@ void LLSidepanelItemInfo::setItemID(cons
 const LLUUID& LLSidepanelItemInfo::getObjectID() const
 {
 	return mObjectID;
 }
 
+const LLUUID& LLSidepanelItemInfo::getItemID() const
+{
+	return mItemID;
+}
+
 void LLSidepanelItemInfo::reset()
 {
 	LLSidepanelInventorySubpanel::reset();
 
 	mObjectID = LLUUID::null;
diff --git a/indra/newview/llsidepaneliteminfo.h b/indra/newview/llsidepaneliteminfo.h
--- a/indra/newview/llsidepaneliteminfo.h
+++ b/indra/newview/llsidepaneliteminfo.h
@@ -53,10 +53,11 @@ public:
 	void setObjectID(const LLUUID& object_id);
 	void setItemID(const LLUUID& item_id);
 	void setEditMode(BOOL edit);
 
 	const LLUUID& getObjectID() const;
+	const LLUUID& getItemID() const;
 
 protected:
 	/*virtual*/ void refresh();
 	/*virtual*/ void save();
 
