projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix chars sometimes overflowing a tiny little bit
[quassel.git]
/
src
/
qtui
/
chatitem.cpp
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
b5fb62a
..
dfb069e
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-91,8
+91,8
@@
int ChatItem::WrapColumnFinder::nextWrapColumn() {
line.setLineWidth(item->width());
layout->endLayout();
}
line.setLineWidth(item->width());
layout->endLayout();
}
- int idx = line.xToCursor(lastwrappos + item->width());
- qreal x = line.cursorToX(idx);
+ int idx = line.xToCursor(lastwrappos + item->width()
, QTextLine::CursorOnCharacter
);
+ qreal x = line.cursorToX(idx
, QTextLine::Trailing
);
w = w - wrapList.at(wordidx).width - (x - lastwrappos);
lastwrappos = x;
lastwrapcol = idx;
w = w - wrapList.at(wordidx).width - (x - lastwrappos);
lastwrappos = x;
lastwrapcol = idx;