diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index f10e211f1..12906fd92 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -1063,11 +1063,13 @@ void LLButton::setImageOverlay(const std::string& image_name, LLFontGL::HAlign a if (image_name.empty()) { mImageOverlay = NULL; + mImageOverlaySelectedColor = LLColor4::white; } else { mImageOverlay = LLUI::getUIImage(image_name); mImageOverlayAlignment = alignment; + mImageOverlaySelectedColor = color; mImageOverlayColor = color; } } @@ -1077,11 +1079,13 @@ void LLButton::setImageOverlay(const LLUUID& image_id, LLFontGL::HAlign alignmen if (image_id.isNull()) { mImageOverlay = NULL; + mImageOverlaySelectedColor = LLColor4::white; } else { mImageOverlay = LLUI::getUIImageByID(image_id); mImageOverlayAlignment = alignment; + mImageOverlaySelectedColor = color; mImageOverlayColor = color; } }