summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/updatewindow.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0aca21c5..fdce4aec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* src/gui/trade.cpp: Fixed money field to no longer hide below the
bottom of the window.
* src/CMakeLists.txt: Added shoplistbox.h/cpp files.
+ * src/gui/updatewindow.cpp: Fixed percentage indicator of update
+ window.
2006-11-05 Bjørn Lindeijer <bjorn@lindeijer.nl>
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 89d1793e..d8244d37 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -198,7 +198,7 @@ int UpdaterWindow::updateProgress(void *ptr,
if (progress > 1) progress = 1.0f;
uw->setLabel(
- uw->mCurrentFile + " (" + toString((int)progress * 100) + "%)");
+ uw->mCurrentFile + " (" + toString((int) (progress * 100)) + "%)");
uw->setProgress(progress);
if (state != UPDATE_STATE || uw->mDownloadStatus == UPDATE_ERROR)