summaryrefslogtreecommitdiff
path: root/dw/textblock_iterator.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-09 13:24:15 +0100
committerSebastian Geerken <devnull@localhost>2013-01-09 13:24:15 +0100
commit92d1e8dbc99e5fa336886082e4eb4a99a8b22c91 (patch)
tree2e5bf391f246e73d7181fed09957b356429e4869 /dw/textblock_iterator.cc
parentfe7da790d3042ade512fa8bcfd1c2720fc2c6442 (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.cc2
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);