diff options
Diffstat (limited to 'linden/indra/newview/llfloaterlandholdings.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterlandholdings.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterlandholdings.cpp b/linden/indra/newview/llfloaterlandholdings.cpp index 5aac949..bccabb3 100644 --- a/linden/indra/newview/llfloaterlandholdings.cpp +++ b/linden/indra/newview/llfloaterlandholdings.cpp | |||
@@ -116,8 +116,10 @@ BOOL LLFloaterLandHoldings::postBuild() | |||
116 | element["columns"][0]["value"] = gAgent.mGroups.get(i).mName; | 116 | element["columns"][0]["value"] = gAgent.mGroups.get(i).mName; |
117 | element["columns"][0]["font"] = "SANSSERIF"; | 117 | element["columns"][0]["font"] = "SANSSERIF"; |
118 | 118 | ||
119 | LLUIString areastr = getUIString("area_string"); | ||
120 | areastr.setArg("[AREA]", llformat("%d", gAgent.mGroups.get(i).mContribution)); | ||
119 | element["columns"][1]["column"] = "area"; | 121 | element["columns"][1]["column"] = "area"; |
120 | element["columns"][1]["value"] = llformat("%d sq. meters", gAgent.mGroups.get(i).mContribution); | 122 | element["columns"][1]["value"] = areastr; |
121 | element["columns"][1]["font"] = "SANSSERIF"; | 123 | element["columns"][1]["font"] = "SANSSERIF"; |
122 | 124 | ||
123 | list->addElement(element, ADD_SORTED); | 125 | list->addElement(element, ADD_SORTED); |
@@ -315,14 +317,7 @@ void LLFloaterLandHoldings::refreshAggregates() | |||
315 | S32 current_area = gStatusBar->getSquareMetersCommitted(); | 317 | S32 current_area = gStatusBar->getSquareMetersCommitted(); |
316 | S32 available_area = gStatusBar->getSquareMetersLeft(); | 318 | S32 available_area = gStatusBar->getSquareMetersLeft(); |
317 | 319 | ||
318 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ | 320 | childSetTextArg("allowed_text", "[AREA]", llformat("%d",allowed_area)); |
319 | 321 | childSetTextArg("current_text", "[AREA]", llformat("%d",current_area)); | |
320 | snprintf(buffer, MAX_STRING, "%d sq. meters", allowed_area); /* Flawfinder: ignore */ | 322 | childSetTextArg("available_text", "[AREA]", llformat("%d",available_area)); |
321 | childSetValue("allowed_text", LLSD(buffer)); | ||
322 | |||
323 | snprintf(buffer, MAX_STRING, "%d sq. meters", current_area); /* Flawfinder: ignore */ | ||
324 | childSetValue("current_text", LLSD(buffer)); | ||
325 | |||
326 | snprintf(buffer, MAX_STRING, "%d sq. meters", available_area); /* Flawfinder: ignore */ | ||
327 | childSetValue("available_text", LLSD(buffer)); | ||
328 | } | 323 | } |