summaryrefslogtreecommitdiff
path: root/dw/textblock_iterator.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-14 16:48:47 +0200
committerSebastian Geerken <devnull@localhost>2014-10-14 16:48:47 +0200
commitf2e8f4db64703ef02275b5f1ede8ea79dac1d2ad (patch)
treea12a650ff877355fb1b791ca779ec46e68d7ec9c /dw/textblock_iterator.cc
parent99b330db77308b5b21fe2978c3fe6ce60b177110 (diff)
Work on collapsing margins.
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 c09d9a75..6cc8c81b 100644
--- a/dw/textblock_iterator.cc
+++ b/dw/textblock_iterator.cc
@@ -303,7 +303,7 @@ void Textblock::TextblockIterator::getAllocation (int start, int end,
&& word->content.text[start]
== 0);
}
- allocation->y = textblock->lineYOffsetCanvas (line) + line->boxAscent -
+ allocation->y = textblock->lineYOffsetCanvas (line) + line->borderAscent -
word->size.ascent;
allocation->width = word->size.width;