diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-02 21:55:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-02 22:02:52 +0100 |
commit | 4f422bd50c51d812fb9e50f2610c2cd37ead8ef2 (patch) | |
tree | 5c257b7c611e7bd519265bcfcb33a882804acf35 /src/gui/widgets | |
parent | 2a70d4ba6e789075cd9bee1fea4f757186d68f76 (diff) | |
download | mana-client-4f422bd50c51d812fb9e50f2610c2cd37ead8ef2.tar.gz mana-client-4f422bd50c51d812fb9e50f2610c2cd37ead8ef2.tar.bz2 mana-client-4f422bd50c51d812fb9e50f2610c2cd37ead8ef2.tar.xz mana-client-4f422bd50c51d812fb9e50f2610c2cd37ead8ef2.zip |
Fixed crash when trying to increase non-selected skill
Reviewed-by: Jared Adams
Reviewed-by: Bertram
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/checkbox.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |