X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.cpp;h=0a0d0dbcf6546edeec34e6e769fff9cbed5beeab;hp=d2f55be962f1df5641cf9bdd04adf744a788fbac;hb=dcd1ffa954d7b1a582dd45a1c4ca37bdacb92990;hpb=6cd95dbc8ac28ab7a22e640d9fe6e3a6aff8f8a9 diff --git a/src/qtui/chatline-old.cpp b/src/qtui/chatline-old.cpp index d2f55be9..0a0d0dbc 100644 --- a/src/qtui/chatline-old.cpp +++ b/src/qtui/chatline-old.cpp @@ -345,6 +345,7 @@ void ChatLine::draw(QPainter *p, const QPointF &pos) { } QPointF tpos = pos + QPointF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText(), 0); qreal h = 0; int l = 0; + if(lineLayouts.count() == 0) return; // how can this happen? rect = QRectF(tpos + QPointF(0, h), QSizeF(textWidth, lineLayouts[l].height)); int offset = 0; foreach(FormatRange fr, textFormat) {