X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fchatline.cpp;h=fd3c7104505d6422ac076e23504a7948d6e237fb;hp=5d828c1f8c5ebed0190972847735d014145b7f49;hb=6869909402a4dc807ee5261cc2a0999ac33053ee;hpb=15d0a434fa4f2255593d6cc62fa2223fd0247b86 diff --git a/src/qtgui/chatline.cpp b/src/qtgui/chatline.cpp index 5d828c1f..fd3c7104 100644 --- a/src/qtgui/chatline.cpp +++ b/src/qtgui/chatline.cpp @@ -223,6 +223,8 @@ int ChatLine::posToCursor(QPointF pos) { return line.start; } } + qWarning() << "Should we ever reach this point?"; + return 0; } void ChatLine::precomputeLine() { @@ -243,7 +245,7 @@ void ChatLine::precomputeLine() { for(int j = url.start; j < url.end; j++) charUrlIdx[j] = i; } if(!textFormat.count()) return; - int idx = 0; int cnt = 0; int w = 0; int h = 0; + int idx = 0; int cnt = 0; int w = 0; QFontMetrics metrics(textFormat[0].format.font()); Word wr; wr.start = -1; wr.trailing = -1;