[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r4080: Clean up a compile warning on Windows. (vidalia/trunk/src/vidalia/log)
Author: edmanm
Date: 2009-08-28 14:14:48 -0400 (Fri, 28 Aug 2009)
New Revision: 4080
Modified:
vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp
Log:
Clean up a compile warning on Windows.
Modified: vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp
===================================================================
--- vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp 2009-08-28 06:54:49 UTC (rev 4079)
+++ vidalia/trunk/src/vidalia/log/StatusEventItemDelegate.cpp 2009-08-28 18:14:48 UTC (rev 4080)
@@ -56,8 +56,8 @@
// Draw the status icon
QPoint center = iconRect.center();
- int x = center.x() - (icon.width() / 2.0);
- int y = center.y() - ((icon.height() + fm.lineSpacing()) / 2.0);
+ int x = center.x() - qRound(icon.width() / 2.0);
+ int y = center.y() - qRound((icon.height() + fm.lineSpacing()) / 2.0);
painter->drawPixmap(x, y, icon);
// Draw the timestamp text underneath the status icon