aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llbutton.cpp')
-rw-r--r--linden/indra/llui/llbutton.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/llui/llbutton.cpp b/linden/indra/llui/llbutton.cpp
index 9fa1c8e..7513fc2 100644
--- a/linden/indra/llui/llbutton.cpp
+++ b/linden/indra/llui/llbutton.cpp
@@ -956,37 +956,37 @@ S32 round_up(S32 grid, S32 value)
956 956
957void LLButton::setImageUnselected(const LLString &image_name) 957void LLButton::setImageUnselected(const LLString &image_name)
958{ 958{
959 setImageUnselected(LLUI::getUIImageByName(image_name)); 959 setImageUnselected(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
960 mImageUnselectedName = image_name; 960 mImageUnselectedName = image_name;
961} 961}
962 962
963void LLButton::setImageSelected(const LLString &image_name) 963void LLButton::setImageSelected(const LLString &image_name)
964{ 964{
965 setImageSelected(LLUI::getUIImageByName(image_name)); 965 setImageSelected(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
966 mImageSelectedName = image_name; 966 mImageSelectedName = image_name;
967} 967}
968 968
969void LLButton::setImageHoverSelected(const LLString &image_name) 969void LLButton::setImageHoverSelected(const LLString &image_name)
970{ 970{
971 setImageHoverSelected(LLUI::getUIImageByName(image_name)); 971 setImageHoverSelected(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
972 mImageHoverSelectedName = image_name; 972 mImageHoverSelectedName = image_name;
973} 973}
974 974
975void LLButton::setImageHoverUnselected(const LLString &image_name) 975void LLButton::setImageHoverUnselected(const LLString &image_name)
976{ 976{
977 setImageHoverUnselected(LLUI::getUIImageByName(image_name)); 977 setImageHoverUnselected(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
978 mImageHoverUnselectedName = image_name; 978 mImageHoverUnselectedName = image_name;
979} 979}
980 980
981void LLButton::setImageDisabled(const LLString &image_name) 981void LLButton::setImageDisabled(const LLString &image_name)
982{ 982{
983 setImageDisabled(LLUI::getUIImageByName(image_name)); 983 setImageDisabled(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
984 mImageDisabledName = image_name; 984 mImageDisabledName = image_name;
985} 985}
986 986
987void LLButton::setImageDisabledSelected(const LLString &image_name) 987void LLButton::setImageDisabledSelected(const LLString &image_name)
988{ 988{
989 setImageDisabledSelected(LLUI::getUIImageByName(image_name)); 989 setImageDisabledSelected(image_name.empty() ? NULL : LLUI::getUIImageByName(image_name));
990 mImageDisabledSelectedName = image_name; 990 mImageDisabledSelectedName = image_name;
991} 991}
992 992