summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qgtkstyle.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-07-22 13:59:58 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-07-22 14:01:00 (GMT)
commite2aa651aba89bcc409dd090466b04036277a9a7c (patch)
tree251c32e4fa81e0ac9250a442ba0ea9c57dd5512d /src/gui/styles/qgtkstyle.cpp
parent1a55f40b6223511d0eb388064597ab38a0d37627 (diff)
downloadQt-e2aa651aba89bcc409dd090466b04036277a9a7c.zip
Qt-e2aa651aba89bcc409dd090466b04036277a9a7c.tar.gz
Qt-e2aa651aba89bcc409dd090466b04036277a9a7c.tar.bz2
Compile on embedded
Diffstat (limited to 'src/gui/styles/qgtkstyle.cpp')
-rw-r--r--src/gui/styles/qgtkstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index 53f3db9..660b4c3 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -2076,7 +2076,7 @@ void QGtkStyle::drawControl(ControlElement element,
if (vertical)
rect = QRect(rect.left(), rect.top(), rect.height(), rect.width()); // flip width and height
const int progressIndicatorPos = (bar->progress - qreal(bar->minimum)) * rect.width() /
- qMax(1.0, qreal(bar->maximum) - bar->minimum);
+ qMax(qreal(1.0), qreal(bar->maximum) - bar->minimum);
if (progressIndicatorPos >= 0 && progressIndicatorPos <= rect.width())
leftRect = QRect(rect.left(), rect.top(), progressIndicatorPos, rect.height());
if (vertical)