summaryrefslogtreecommitdiffstats
path: root/src/kpowersave.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-02 18:02:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-02 18:02:57 +0000
commitf2536fbf51ae657d5ff53da88a90e3159096c625 (patch)
treeab554d47aea761740d7ed46822e902e08e18cae2 /src/kpowersave.cpp
parent8893f3b50b23d0010343ab7b846a00721e689480 (diff)
downloadkpowersave-f2536fbf51ae657d5ff53da88a90e3159096c625.tar.gz
kpowersave-f2536fbf51ae657d5ff53da88a90e3159096c625.zip
Fixed icon drawing
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1145375 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r--src/kpowersave.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp
index 9449663..a44b7ee 100644
--- a/src/kpowersave.cpp
+++ b/src/kpowersave.cpp
@@ -374,7 +374,7 @@ void kpowersave::loadIcon(){
/*!
* This function draw the battery-capacity (colored field) to the icon.
* Here also counted the white pixel in the icon-files. Since the icons are
- * the same and white pixel only in the retangel of the icon, the white pixel
+ * the same and white pixel only in the rectangle of the icon, the white pixel
* stored in \ref countWhiteIconPixel only one time.
*/
void kpowersave::drawIcon(){
@@ -386,6 +386,7 @@ void kpowersave::drawIcon(){
int w = image.width();
int h = image.height();
int x, y;
+ countWhiteIconPixel = 0;
if((pixmap_name.contains("laptopbattery") || pixmap_name.contains("charge")) &&
countWhiteIconPixel == 0) {