aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/winextras/qwintaskbarbutton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winextras/qwintaskbarbutton.cpp b/src/winextras/qwintaskbarbutton.cpp
index f687f68..cedca35 100644
--- a/src/winextras/qwintaskbarbutton.cpp
+++ b/src/winextras/qwintaskbarbutton.cpp
@@ -166,7 +166,7 @@ void QWinTaskbarButtonPrivate::_q_updateProgress()
const int max = progressBar->maximum();
const int range = max - min;
if (range > 0) {
- const int value = 100 * (progressBar->value() - min) / range;
+ const int value = qRound(double(100) * (double(progressBar->value() - min)) / double(range));
pTbList->SetProgressValue(handle(), ULONGLONG(value), 100);
}
}