diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-16 22:45:56 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-16 22:45:56 +0200 |
commit | 5e33e0b52940e739f07e9c0955e61fc104c2d936 (patch) | |
tree | 9f4daa2565a5fea300c48d3ca788141da69013dc /src/gui/widgets | |
parent | c8fb331e7506e4b2616f8bb30809adeb9f348615 (diff) | |
download | mana-5e33e0b52940e739f07e9c0955e61fc104c2d936.tar.gz mana-5e33e0b52940e739f07e9c0955e61fc104c2d936.tar.bz2 mana-5e33e0b52940e739f07e9c0955e61fc104c2d936.tar.xz mana-5e33e0b52940e739f07e9c0955e61fc104c2d936.zip |
Fix the off-by-one error reported in the issue comments.
Trivial fix.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/button.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index edf9e590..f072ef61 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -102,8 +102,7 @@ void Button::setButtonIcon(const std::string& iconFile, int frameHeight, mButtonIcon = new Image*[BUTTON_COUNT]; for (int mode = 0; mode < BUTTON_COUNT; ++mode) { - mButtonIcon[mode] = btnIcons->getSubImage(mode * frameWidth - + (mode ? 1 : 0), 0, + mButtonIcon[mode] = btnIcons->getSubImage(mode * frameWidth, 0, frameWidth, frameHeight); } |