lib/write_xlsx/worksheet.rb in write_xlsx-0.85.5 vs lib/write_xlsx/worksheet.rb in write_xlsx-0.85.6
- old
+ new
@@ -5847,13 +5847,14 @@
set_external_vml_links(vml_drawing_id)
set_external_comment_links(comment_id) if has_comments?
# The VML o:idmap data id contains a comma separated range when there is
# more than one 1024 block of comments, like this: data="1,2".
+ data = "#{vml_data_id}"
(1 .. num_comments_block).each do |i|
- vml_data_id = "#{vml_data_id},#{vml_data_id + i}"
+ data += ",#{vml_data_id + i}"
end
- @vml_data_id = vml_data_id
+ @vml_data_id = data
@vml_shape_id = vml_shape_id
end
#
# Setup external linkage for VML header/footer images.