aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbuyland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterbuyland.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp
index 1ad45e1..f2a9fe2 100644
--- a/linden/indra/newview/llfloaterbuyland.cpp
+++ b/linden/indra/newview/llfloaterbuyland.cpp
@@ -1020,14 +1020,24 @@ void LLFloaterBuyLandUI::refreshUI()
1020 1020
1021 childSetText("info_size", getString("meters_supports_object", string_args)); 1021 childSetText("info_size", getString("meters_supports_object", string_args));
1022 1022
1023 F32 cost_per_sqm = 0.0f;
1024 if (mParcelActualArea > 0)
1025 {
1026 cost_per_sqm = (F32)mParcelPrice / (F32)mParcelActualArea;
1027 }
1023 1028
1024 childSetText("info_price", 1029 LLStringUtil::format_map_t info_price_args;
1025 llformat( 1030 info_price_args["[PRICE]"] = llformat("%d", mParcelPrice);
1026 "L$ %d%s", 1031 info_price_args["[PRICE_PER_SQM]"] = llformat("%.1f", cost_per_sqm);
1027 mParcelPrice, 1032 if (mParcelSoldWithObjects)
1028 mParcelSoldWithObjects 1033 {
1029 ? "\nsold with objects" 1034 info_price_args["[SOLD_WITH_OBJECTS]"] = getString("sold_with_objects");
1030 : "")); 1035 }
1036 else
1037 {
1038 info_price_args["[SOLD_WITH_OBJECTS]"] = getString("sold_without_objects");
1039 }
1040 childSetText("info_price", getString("info_price_string", info_price_args));
1031 childSetVisible("info_price", mParcelIsForSale); 1041 childSetVisible("info_price", mParcelIsForSale);
1032 } 1042 }
1033 else 1043 else