summaryrefslogtreecommitdiff
path: root/src/gui/widgets/checkbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/checkbox.cpp')
-rw-r--r--src/gui/widgets/checkbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index 759ca9015..344b99eb0 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -178,9 +178,9 @@ void CheckBox::drawBox(gcn::Graphics *const graphics)
{
const Image *box;
- if (isEnabled())
+ if (mEnabled && isVisible())
{
- if (isSelected())
+ if (mSelected)
{
if (mHasMouse)
box = checkBoxCheckedHi;
@@ -197,7 +197,7 @@ void CheckBox::drawBox(gcn::Graphics *const graphics)
}
else
{
- if (isSelected())
+ if (mSelected)
box = checkBoxDisabledChecked;
else
box = checkBoxDisabled;