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|