# HG changeset patch # User Chris Cannam # Date 1306255090 -3600 # Node ID 1a811e7721f1903bb9020b08e222fe019c3b36e4 # Parent ef31a55c86b604f9b39e6a35e5991e9a2f44c324 Alignment fix: avoid integer division diff -r ef31a55c86b6 -r 1a811e7721f1 src/changesetitem.cpp --- 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));