int dy = q->height();
QSize size(0, 0);
+ layoutThread = QThread::currentThread();
+
//setup instance of QTextLayout for all cases other than richtext
if (!richText) {
QRect textRect = setupTextLayout();
bool elideText = false;
bool truncate = false;
- layoutThread = QThread::currentThread();
-
QFontMetrics fm(layout.font());
elidePos = QPointF();
Q_UNUSED(data);
Q_D(QSGText);
+ if (d->text.isEmpty()) {
+ delete oldNode;
+ return 0;
+ }
+
bool richTextAsImage = false;
if (d->richText) {
d->ensureDoc();