diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-14 15:01:30 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-14 15:01:30 +0300 |
commit | 756b010f7ca9fa31922ccbbff843dba2e1c1fed3 (patch) | |
tree | 8fda0ab6a3f6cdf56168470c8bd6473ae42cdbba /indra | |
parent | 1f2dcfd866390be1a3a1b1f9406bca861d32c4b4 (diff) |
EXT-8318 FIXED Fixed wrong (hardcoded) locale usage to format number of inventory items in the Inventory SP.
Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/752/
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 3e12f0ba9a..56b73fe55b 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -567,7 +567,8 @@ void LLPanelMainInventory::draw() void LLPanelMainInventory::updateItemcountText() { - LLLocale locale(LLLocale::USER_LOCALE); + // *TODO: Calling setlocale() on each frame may be inefficient. + LLLocale locale(LLStringUtil::getLocale()); std::string item_count_string; LLResMgr::getInstance()->getIntegerString(item_count_string, gInventory.getItemCount()); |