X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.cpp;h=33b4d9ac5a90b53fa6af864eb6d4822e4e9d89fb;hp=d2f55be962f1df5641cf9bdd04adf744a788fbac;hb=3bb86923bd1b39089abacc4fcb08bb4939ab70e0;hpb=e733408e4759473bf38831f498f48a0f2f5e6dc7 diff --git a/src/qtui/chatline-old.cpp b/src/qtui/chatline-old.cpp index d2f55be9..33b4d9ac 100644 --- a/src/qtui/chatline-old.cpp +++ b/src/qtui/chatline-old.cpp @@ -138,7 +138,7 @@ MsgId ChatLine::msgId() const { } BufferInfo ChatLine::bufferInfo() const { - return msg.buffer(); + return msg.bufferInfo(); } QDateTime ChatLine::timestamp() const { @@ -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) {