X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/7738a2fb84fe9fa2017f8e754f2b37955174765d..416dfe1719254d4718888fdbb0b0ac6d3ad91705:/bk_paper.c diff --git a/bk_paper.c b/bk_paper.c index b38060f..a8479c7 100644 --- a/bk_paper.c +++ b/bk_paper.c @@ -1691,9 +1691,11 @@ static page_data *page_breaks(line_data *first, line_data *last, text += l->line_height; l->page = page; - l->ypos = text + space + head + - space * (float)page->first_line->vshortfall[n] / - page->first_line->space[n]; + l->ypos = text + space + head; + if (page->first_line->space[n]) { + l->ypos += space * (float)page->first_line->vshortfall[n] / + page->first_line->space[n]; + } if (l == page->last_line) break;