diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-07-02 18:53:01 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-07-02 18:54:35 +0300 | 
| commit | 708ab146540b4117434f8feb719b6619a0438fe2 (patch) | |
| tree | 8a4391542b200b3000b658f11eb345298759e8ec | |
| parent | afd734b5f4ba66204f80f7726aa5fec538fcf1e4 (diff) | |
SL-12930 Fixed wrong width source
getVisibleTextRect can be uninitialized, yet it is identical to getLocalRect (and getRect) in width due to these elements not having scrollers.
| -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 1de73ec1f3..3e770958da 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->getVisibleTextRect().getWidth()); +	shorten_name(name, style_params, mLabelOwnerName->getLocalRect().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->getVisibleTextRect().getWidth()); +	shorten_name(name, style_params, mLabelCreatorName->getLocalRect().getWidth());  	mLabelCreatorName->setText(name, style_params);  } | 
