Skip to content
Snippets Groups Projects
Commit 72942a2f authored by maxim_productengine's avatar maxim_productengine
Browse files

SL-10961 FIXED 'Price/Area/Primitives' designations are absent in 'For sale' tab

parent 714a95e1
Branches
No related tags found
No related merge requests found
...@@ -563,11 +563,8 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel, ...@@ -563,11 +563,8 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel,
mSaleToText->setText(getString("anyone")); mSaleToText->setText(getString("anyone"));
} }
const U8* sign = (U8*)getString("price_text").c_str(); mSalesPriceText->setText(llformat("%s%d ", getString("price_text"), parcel->getSalePrice()));
const U8* sqm = (U8*)getString("area_text").c_str(); mAreaText->setText(llformat("%d %s", area, getString("area_text")));
mSalesPriceText->setText(llformat("%s%d ", sign, parcel->getSalePrice()));
mAreaText->setText(llformat("%d %s", area, sqm));
mTrafficText->setText(llformat("%.0f", dwell)); mTrafficText->setText(llformat("%.0f", dwell));
// Can't have more than region max tasks, regardless of parcel // Can't have more than region max tasks, regardless of parcel
...@@ -575,10 +572,7 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel, ...@@ -575,10 +572,7 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel,
S32 primitives = llmin(ll_round(parcel->getMaxPrimCapacity() * parcel->getParcelPrimBonus()), S32 primitives = llmin(ll_round(parcel->getMaxPrimCapacity() * parcel->getParcelPrimBonus()),
(S32)region->getMaxTasks()); (S32)region->getMaxTasks());
const U8* available = (U8*)getString("available").c_str(); mPrimitivesText->setText(llformat("%d %s, %d %s", primitives, getString("available"), parcel->getPrimCount(), getString("allocated")));
const U8* allocated = (U8*)getString("allocated").c_str();
mPrimitivesText->setText(llformat("%d %s, %d %s", primitives, available, parcel->getPrimCount(), allocated));
if (parcel->getAllowOtherScripts()) if (parcel->getAllowOtherScripts())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment