diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/gui/widgets/slider.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/gui/widgets/slider.cpp')
-rw-r--r-- | src/gui/widgets/slider.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp index c6b57858c..7142cd202 100644 --- a/src/gui/widgets/slider.cpp +++ b/src/gui/widgets/slider.cpp @@ -228,7 +228,7 @@ void Slider::updateAlpha() void Slider::draw(gcn::Graphics *graphics) { - if (!hStart || !hStartHi) + if (!hStart || !hStartHi || !hEnd) return; int w = getWidth(); @@ -253,8 +253,7 @@ void Slider::draw(gcn::Graphics *graphics) } x += w; - if (hEnd) - static_cast<Graphics*>(graphics)->drawImage(hEnd, x, y); + static_cast<Graphics*>(graphics)->drawImage(hEnd, x, y); } else { |