fix calculation error when showing abstract

This commit is contained in:
Franzi 2023-09-30 16:08:25 +02:00
parent 17aef9463a
commit b3dab53d13

View file

@ -192,8 +192,8 @@ local function view_next_talk(starts, ends, config, x1, y1, x2, y2)
y = y + 20 y = y + 20
-- Show abstract only if it fits into the drawing area completely -- Show abstract only if it fits into the drawing area completely
if show_abstract and a.height > (y + #lines*abstract_size + 20) then
local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2) local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2)
if show_abstract and a.height > (y + #lines*abstract_size + 20) then
for idx = 1, #lines do for idx = 1, #lines do
text(col2, y, lines[idx], abstract_size, rgba(default_color,1)) text(col2, y, lines[idx], abstract_size, rgba(default_color,1))
y = y + abstract_size y = y + abstract_size