diff options
| author | maxim_productengine <mnikolenko@productengine.com> | 2019-04-15 13:54:49 +0300 | 
|---|---|---|
| committer | maxim_productengine <mnikolenko@productengine.com> | 2019-04-15 13:54:49 +0300 | 
| commit | 72942a2fb7b5ad324affca80fee00d4c3ad67e73 (patch) | |
| tree | 1a79edf044e1deb5029700a0563846551c0a5772 | |
| parent | 714a95e103963984fbb67630fb57006225e1fa8a (diff) | |
SL-10961 FIXED 'Price/Area/Primitives' designations are absent in 'For sale' tab
| -rw-r--r-- | indra/newview/llpanelplaceprofile.cpp | 12 | 
1 files changed, 3 insertions, 9 deletions
| diff --git a/indra/newview/llpanelplaceprofile.cpp b/indra/newview/llpanelplaceprofile.cpp index 610b3a6396..13e50904c2 100644 --- a/indra/newview/llpanelplaceprofile.cpp +++ b/indra/newview/llpanelplaceprofile.cpp @@ -563,11 +563,8 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel,  			mSaleToText->setText(getString("anyone"));  		} -		const U8* sign = (U8*)getString("price_text").c_str(); -		const U8* sqm = (U8*)getString("area_text").c_str(); - -		mSalesPriceText->setText(llformat("%s%d ", sign, parcel->getSalePrice())); -		mAreaText->setText(llformat("%d %s", area, sqm)); +		mSalesPriceText->setText(llformat("%s%d ", getString("price_text"), parcel->getSalePrice())); +		mAreaText->setText(llformat("%d %s", area, getString("area_text")));  		mTrafficText->setText(llformat("%.0f", dwell));  		// Can't have more than region max tasks, regardless of parcel @@ -575,10 +572,7 @@ void LLPanelPlaceProfile::displaySelectedParcelInfo(LLParcel* parcel,  		S32 primitives = llmin(ll_round(parcel->getMaxPrimCapacity() * parcel->getParcelPrimBonus()),  							   (S32)region->getMaxTasks()); -		const U8* available = (U8*)getString("available").c_str(); -		const U8* allocated = (U8*)getString("allocated").c_str(); - -		mPrimitivesText->setText(llformat("%d %s, %d %s", primitives, available, parcel->getPrimCount(), allocated)); +		mPrimitivesText->setText(llformat("%d %s, %d %s", primitives, getString("available"), parcel->getPrimCount(), getString("allocated")));  		if (parcel->getAllowOtherScripts())  		{ | 
