summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-09 09:09:33 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-09 09:09:33 (GMT)
commit434a75313ea30a5fb2d45ecd857b19919b5e7547 (patch)
treec053288fe683783d9fa339018c8521fb9073e0a0 /src
parent5491ab9c921c8e7b89e335c7d09219153ae1d21a (diff)
downloadQt-434a75313ea30a5fb2d45ecd857b19919b5e7547.zip
Qt-434a75313ea30a5fb2d45ecd857b19919b5e7547.tar.gz
Qt-434a75313ea30a5fb2d45ecd857b19919b5e7547.tar.bz2
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
Diffstat (limited to 'src')
-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 73434b1..03eb723 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;