summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/urlbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index 28c63b78..1b1fbc54 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -225,7 +225,7 @@ void UrlBar::paintEvent(QPaintEvent *event)
painter.setPen(Qt::transparent);
QRect backgroundRect = lineEdit()->frameGeometry();
- int mid = backgroundRect.width() / 100 * m_progress;
+ int mid = backgroundRect.width() * m_progress / 100;
QRect progressRect(backgroundRect.x(), backgroundRect.y(), mid, backgroundRect.height());
painter.drawRect(progressRect);
painter.end();