summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-06-29 10:51:53 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-06-29 10:55:03 (GMT)
commit1209a398c3b59b21b38036fffd4fb2442320e5c3 (patch)
treebcf6556f94dbac3f208a5f1b45de7ae227e9fea0 /src/gui/painting
parent20ecb182654fc77be31be9104fce8fdf2155412d (diff)
downloadQt-1209a398c3b59b21b38036fffd4fb2442320e5c3.zip
Qt-1209a398c3b59b21b38036fffd4fb2442320e5c3.tar.gz
Qt-1209a398c3b59b21b38036fffd4fb2442320e5c3.tar.bz2
Made -graphicssystem trace work with Qt::TextBypassShaping flag.
The QPaintBuffer gets the text from the text item in order to stream it. Reviewed-by: Jocelyn Turcotte
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpainter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 71bc990..2ea6673 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -5958,7 +5958,7 @@ void QPainter::drawText(const QPointF &p, const QString &str, int tf, int justif
Q_ASSERT_X(false, Q_FUNC_INFO, "stringToCMap shouldn't fail twice");
}
- QTextItemInt gf(glyphs, &d->state->font, fontEngine);
+ QTextItemInt gf(glyphs, &d->state->font, str.data(), len, fontEngine);
drawTextItem(p, gf);
return;
}