From 059a71423019b6a38c41e2dae6d3e879aa893beb Mon Sep 17 00:00:00 2001 From: Yuri Chebotarev Date: Thu, 13 May 2010 15:54:23 +0300 Subject: EXT-7045 FIX Group profile not using placeholder art add placeholder art, add code to convert texture name to ID since LLTextureCtrl can't accept textures by name... Reviwed V.Savchuk at https://codereview.productengine.com/secondlife/r/378 --HG-- branch : product-engine --- indra/newview/llpanelgroupgeneral.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'indra/newview/llpanelgroupgeneral.cpp') diff --git a/indra/newview/llpanelgroupgeneral.cpp b/indra/newview/llpanelgroupgeneral.cpp index 0a83ba8212..ddd41a1791 100644 --- a/indra/newview/llpanelgroupgeneral.cpp +++ b/indra/newview/llpanelgroupgeneral.cpp @@ -846,6 +846,17 @@ void LLPanelGroupGeneral::reset() mInsignia->setEnabled(true); + LLPointer imagep = LLUI::getUIImage(mInsignia->getDefaultImageName()); + if(imagep) + { + LLViewerFetchedTexture* pTexture = dynamic_cast(imagep->getImage().get()); + if(pTexture) + { + LLUUID id = pTexture->getID(); + mInsignia->setImageAssetID(id); + } + } + { std::string empty_str = ""; mEditCharter->setText(empty_str); -- cgit v1.2.3