summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-09 10:09:33 +0100
committerGunnar Sletta <gunnar@trolltech.com>2009-11-09 10:09:33 +0100
commit434a75313ea30a5fb2d45ecd857b19919b5e7547 (patch)
treec053288fe683783d9fa339018c8521fb9073e0a0
parent5491ab9c921c8e7b89e335c7d09219153ae1d21a (diff)
Fixed inconsistent coloring of bullets, circles and square lists
Also removed a redundant setBrush(), as it will be followed by painter->restore() a few lines below. Reviewed-by: Eskil
-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 73434b1fa4..03eb723f6c 100644
--- a/src/gui/text/qtextdocumentlayout.cpp
+++ b/src/gui/text/qtextdocumentlayout.cpp
@@ -1448,13 +1448,13 @@ void QTextDocumentLayoutPrivate::drawListItem(const QPointF &offset, QPainter *p
painter->fillRect(r, brush);
break;
case QTextListFormat::ListCircle:
+ painter->setPen(QPen(brush));
painter->drawEllipse(r);
break;
case QTextListFormat::ListDisc:
painter->setBrush(brush);
painter->setPen(Qt::NoPen);
painter->drawEllipse(r);
- painter->setBrush(Qt::NoBrush);
break;
case QTextListFormat::ListStyleUndefined:
break;