From abe04b845ea19110dbbc06ba443fe1bf6a29ee92 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 9 Nov 2009 10:13:22 +0100 Subject: Pixelalign circles in HTML bullet lists Reviewed-by: Eskil --- src/gui/text/qtextdocumentlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qtextdocumentlayout.cpp b/src/gui/text/qtextdocumentlayout.cpp index 03eb723..85265af 100644 --- a/src/gui/text/qtextdocumentlayout.cpp +++ b/src/gui/text/qtextdocumentlayout.cpp @@ -1449,7 +1449,7 @@ void QTextDocumentLayoutPrivate::drawListItem(const QPointF &offset, QPainter *p break; case QTextListFormat::ListCircle: painter->setPen(QPen(brush)); - painter->drawEllipse(r); + painter->drawEllipse(r.translated(0.5, 0.5)); // pixel align for sharper rendering break; case QTextListFormat::ListDisc: painter->setBrush(brush); -- cgit v0.12