From 4f422bd50c51d812fb9e50f2610c2cd37ead8ef2 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 2 Mar 2010 21:55:47 +0100 Subject: Fixed crash when trying to increase non-selected skill Reviewed-by: Jared Adams Reviewed-by: Bertram --- src/gui/widgets/checkbox.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/widgets/checkbox.cpp') diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp index d5253d7c..0fefbfe9 100644 --- a/src/gui/widgets/checkbox.cpp +++ b/src/gui/widgets/checkbox.cpp @@ -112,21 +112,29 @@ void CheckBox::drawBox(gcn::Graphics* graphics) Image *box; if (isEnabled()) + { if (isSelected()) + { if (mHasMouse) box = checkBoxCheckedHi; else box = checkBoxChecked; + } else + { if (mHasMouse) box = checkBoxNormalHi; else box = checkBoxNormal; + } + } else + { if (isSelected()) box = checkBoxDisabledChecked; else box = checkBoxDisabled; + } updateAlpha(); -- cgit v1.2.3-70-g09d2