X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fchatline.cpp;h=5d0a97303bde969e6ef33a23f25f7363f781ba8e;hp=5d828c1f8c5ebed0190972847735d014145b7f49;hb=cdb2f3cd9df153ea76c0e27e9a7edb24d1dbdd30;hpb=73edffb5f0f6ecae4118c36a7ca2c0d479b7f8c6 diff --git a/src/qtgui/chatline.cpp b/src/qtgui/chatline.cpp index 5d828c1f..5d0a9730 100644 --- a/src/qtgui/chatline.cpp +++ b/src/qtgui/chatline.cpp @@ -223,6 +223,7 @@ int ChatLine::posToCursor(QPointF pos) { return line.start; } } + return 0; } void ChatLine::precomputeLine() { @@ -243,7 +244,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;