From 8432bec3d6f1d906328ccea342a2de439a88796d Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 29 Feb 2024 12:57:23 +0200 Subject: [PATCH] fix result generation with cell --- lib/submissions/generate_result_attachments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/submissions/generate_result_attachments.rb b/lib/submissions/generate_result_attachments.rb index c15c1032..81889241 100644 --- a/lib/submissions/generate_result_attachments.rb +++ b/lib/submissions/generate_result_attachments.rb @@ -164,7 +164,7 @@ module Submissions width: PdfIcons::WIDTH * scale, height: PdfIcons::HEIGHT * scale ) - when 'cells' + when ->(type) { type == 'cells' && area['cell_w'] } cell_width = area['cell_w'] * width TextUtils.maybe_rtl_reverse(value).chars.each_with_index do |char, index|