X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fchatline.cpp;fp=src%2Fqtgui%2Fchatline.cpp;h=4c0315297c26820906fbd623ab90a224b8ae846d;hp=7c6ffaa537d27efa44a5c17f372a06e3e8e73108;hb=02279f898877bdc43dff42efda1add060983426a;hpb=ebbc00a6b08cbf7ec633479804c3522ba7d45b4f diff --git a/src/qtgui/chatline.cpp b/src/qtgui/chatline.cpp index 7c6ffaa5..4c031529 100644 --- a/src/qtgui/chatline.cpp +++ b/src/qtgui/chatline.cpp @@ -235,7 +235,7 @@ qreal ChatLine::layout(qreal tsw, qreal senderw, qreal textw) { line.y = 0; line.start = 0; line.height = minHeight; // first line needs room for ts and sender - for(int i = 0; i < words.count(); i++) { + for(uint i = 0; i < (uint)words.count(); i++) { int lastpos = charPos[words[i].start + words[i].length]; // We use charPos[lastchar + 1], 'coz last char needs to fit if(lastpos - offset <= textw) { line.height = qMax(line.height, words[i].height);