From 12528b6527975fc8741b8b66050ab66e09f9b421 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 30 Jul 2024 21:18:56 +0300 Subject: [PATCH] fix cell field --- 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 66695663..a2af8634 100644 --- a/lib/submissions/generate_result_attachments.rb +++ b/lib/submissions/generate_result_attachments.rb @@ -327,7 +327,7 @@ module Submissions width: PdfIcons::WIDTH * scale, height: PdfIcons::HEIGHT * scale ) - when ->(type) { type == 'cells' && area['cell_w'] } + when ->(type) { type == 'cells' && !area['cell_w'].to_i.zero? } cell_width = area['cell_w'] * width TextUtils.maybe_rtl_reverse(value).chars.each_with_index do |char, index|