diff options
author | Sebastian Geerken <devnull@localhost> | 2013-01-09 13:24:15 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-01-09 13:24:15 +0100 |
commit | 92d1e8dbc99e5fa336886082e4eb4a99a8b22c91 (patch) | |
tree | 2e5bf391f246e73d7181fed09957b356429e4869 /dw/textblock_iterator.cc | |
parent | fe7da790d3042ade512fa8bcfd1c2720fc2c6442 (diff) |
New attribute Line::offsetCompleteWidget, replaces method lineXOffsetWidget(), and so makes drawing much more efficient.
Diffstat (limited to 'dw/textblock_iterator.cc')
-rw-r--r-- | dw/textblock_iterator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock_iterator.cc b/dw/textblock_iterator.cc index 4831bff5..cfb235ac 100644 --- a/dw/textblock_iterator.cc +++ b/dw/textblock_iterator.cc @@ -269,7 +269,7 @@ void Textblock::TextblockIterator::getAllocation (int start, int end, Word *word = textblock->words->getRef (index); allocation->x = - textblock->allocation.x + textblock->lineXOffsetWidget (line); + textblock->allocation.x + line->offsetCompleteWidget; for (int i = line->firstWord; i < index; i++) { Word *w = textblock->words->getRef(i); |