From b3dab53d1303ea3ad3d4ed3fdf4d58a288802c7a Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 30 Sep 2023 16:08:25 +0200 Subject: [PATCH] fix calculation error when showing abstract --- tile.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.lua b/tile.lua index 016c94c..a571fdf 100644 --- a/tile.lua +++ b/tile.lua @@ -192,8 +192,8 @@ local function view_next_talk(starts, ends, config, x1, y1, x2, y2) y = y + 20 -- Show abstract only if it fits into the drawing area completely + local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2) if show_abstract and a.height > (y + #lines*abstract_size + 20) then - local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2) for idx = 1, #lines do text(col2, y, lines[idx], abstract_size, rgba(default_color,1)) y = y + abstract_size