From dcc8717d899dfe9ffac82aa1ef8d298ce336ac98 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 28 Mar 2021 21:02:03 +0200 Subject: [PATCH] [tables] Condition for negative x in the expand_lines function. Refs #112 --- src/document/html/renderer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index a8aec3a5c..f2597f72f 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -387,6 +387,10 @@ expand_lines(struct html_context *html_context, struct part *part, par_format.color.background = bgcolor; + if (x < 0) { + x = 0; + } + for (line = 0; line < lines; line++) { if (realloc_line(html_context, part->document, Y(y + line), X(x))) return;