Fix voice icon in chat floater tab

This commit is contained in:
Siana Gearz
2012-08-13 01:56:35 +02:00
parent 4294038271
commit e9c54bb5e4

View File

@@ -1063,11 +1063,13 @@ void LLButton::setImageOverlay(const std::string& image_name, LLFontGL::HAlign a
if (image_name.empty()) if (image_name.empty())
{ {
mImageOverlay = NULL; mImageOverlay = NULL;
mImageOverlaySelectedColor = LLColor4::white;
} }
else else
{ {
mImageOverlay = LLUI::getUIImage(image_name); mImageOverlay = LLUI::getUIImage(image_name);
mImageOverlayAlignment = alignment; mImageOverlayAlignment = alignment;
mImageOverlaySelectedColor = color;
mImageOverlayColor = color; mImageOverlayColor = color;
} }
} }
@@ -1077,11 +1079,13 @@ void LLButton::setImageOverlay(const LLUUID& image_id, LLFontGL::HAlign alignmen
if (image_id.isNull()) if (image_id.isNull())
{ {
mImageOverlay = NULL; mImageOverlay = NULL;
mImageOverlaySelectedColor = LLColor4::white;
} }
else else
{ {
mImageOverlay = LLUI::getUIImageByID(image_id); mImageOverlay = LLUI::getUIImageByID(image_id);
mImageOverlayAlignment = alignment; mImageOverlayAlignment = alignment;
mImageOverlaySelectedColor = color;
mImageOverlayColor = color; mImageOverlayColor = color;
} }
} }