summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocumentlayout.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-09 10:13:22 +0100
committerGunnar Sletta <gunnar@trolltech.com>2009-11-09 10:13:22 +0100
commitabe04b845ea19110dbbc06ba443fe1bf6a29ee92 (patch)
tree4167fb49263e3efd230990e6d700c300bb61245b /src/gui/text/qtextdocumentlayout.cpp
parent434a75313ea30a5fb2d45ecd857b19919b5e7547 (diff)
Pixelalign circles in HTML bullet lists
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qtextdocumentlayout.cpp')
-rw-r--r--src/gui/text/qtextdocumentlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocumentlayout.cpp b/src/gui/text/qtextdocumentlayout.cpp
index 03eb723f6c..85265af706 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);