diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-07-01 23:37:14 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-07-01 23:37:54 +0300 | 
| commit | 4487b3f105c59733d5bf667a94df81b531fef525 (patch) | |
| tree | 0d28740e26835331dbe0d4ffc27184a01266d54b | |
| parent | 562c2bd1ec4fe25f4a686f1b7e59ddd78fd90d41 (diff) | |
SL-12930 Fixed wrong width source
| -rw-r--r-- | indra/newview/llpanelpermissions.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp index 225e2fb22c..1de73ec1f3 100644 --- a/indra/newview/llpanelpermissions.cpp +++ b/indra/newview/llpanelpermissions.cpp @@ -1009,7 +1009,7 @@ void LLPanelPermissions::updateOwnerName(const LLUUID& owner_id, const LLAvatarN  		mOwnerCacheConnection.disconnect();  	}  	std::string name = owner_name.getCompleteName(); -	shorten_name(name, style_params, mLabelOwnerName->getTextPixelWidth()); +	shorten_name(name, style_params, mLabelOwnerName->getVisibleTextRect().getWidth());  	mLabelOwnerName->setText(name, style_params);  } @@ -1020,7 +1020,7 @@ void LLPanelPermissions::updateCreatorName(const LLUUID& creator_id, const LLAva  		mCreatorCacheConnection.disconnect();  	}  	std::string name = creator_name.getCompleteName(); -	shorten_name(name, style_params, mLabelCreatorName->getTextPixelWidth()); +	shorten_name(name, style_params, mLabelCreatorName->getVisibleTextRect().getWidth());  	mLabelCreatorName->setText(name, style_params);  } | 
