From f2e8f4db64703ef02275b5f1ede8ea79dac1d2ad Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Tue, 14 Oct 2014 16:48:47 +0200 Subject: Work on collapsing margins. --- dw/textblock_iterator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dw/textblock_iterator.cc') 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; -- cgit v1.2.3