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
master
Vadim Savchuk 2010-07-14 15:01:30 +03:00
parent 1f2dcfd866
commit 756b010f7c
1 changed files with 2 additions and 1 deletions

View File

@ -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());