From ff17358e1f4629c1ef172358354bf7477155303b Mon Sep 17 00:00:00 2001
From: Mnikolenko ProductEngine <mnikolenko@productengine.com>
Date: Mon, 22 Sep 2014 11:17:10 +0300
Subject: [PATCH] MAINT-4434 FIXED Mainland land deeding amounts bugged

---
 indra/newview/llpanelgrouplandmoney.cpp | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/indra/newview/llpanelgrouplandmoney.cpp b/indra/newview/llpanelgrouplandmoney.cpp
index e7002395f83..2f7c44f899b 100755
--- a/indra/newview/llpanelgrouplandmoney.cpp
+++ b/indra/newview/llpanelgrouplandmoney.cpp
@@ -428,10 +428,18 @@ void LLPanelGroupLandMoney::impl::processGroupLand(LLMessageSystem* msg)
 
 			S32 committed = 0;
 			S32 billable_area = 0;
-			for(S32 i = first_block; i < count; ++i)
+
+			if(count == 1)
+			{
+				msg->getS32("QueryData", "BillableArea", committed, 0);
+			}
+			else
 			{
-				msg->getS32("QueryData", "BillableArea", billable_area, i);
-				committed+=billable_area;
+				for(S32 i = first_block; i < count; ++i)
+				{
+					msg->getS32("QueryData", "BillableArea", billable_area, i);
+					committed+=billable_area;
+				}
 			}
 
 			S32 total_contribution;
-- 
GitLab