projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6aaf227
)
Fix chars sometimes overflowing a tiny little bit
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 10 Jul 2008 23:35:47 +0000
(
01:35
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 2 Aug 2008 13:17:10 +0000
(15:17 +0200)
src/qtui/chatitem.cpp
patch
|
blob
|
history
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;