diff src/changesetitem.cpp @ 391:1a811e7721f1 item_appearance_adjustments

Alignment fix: avoid integer division
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Tue, 24 May 2011 17:38:10 +0100
parents ef31a55c86b6
children cf18694f64a3
line wrap: on
line diff
--- a/src/changesetitem.cpp	Tue May 24 17:21:31 2011 +0100
+++ b/src/changesetitem.cpp	Tue May 24 17:38:10 2011 +0100
@@ -352,7 +352,7 @@
     paint->drawRoundedRect(r, 7, 7);
     paint->setBrush(QBrush(userColour));
     paint->drawRoundedRect(QRectF(x0 + 0.5, 0.5, width - 4, fh - 0.5), 7, 7);
-    paint->drawRect(QRectF(x0 + 0.5, fh/2, width - 4, fh/2));
+    paint->drawRect(QRectF(x0 + 0.5, fh/2.0, width - 4, fh/2.0));
     paint->restore();
 
     paint->setPen(QPen(Qt::white));