diff options
| author | 2019-02-01 19:23:07 -0500 | |
|---|---|---|
| committer | 2019-02-01 19:23:07 -0500 | |
| commit | 5a669c40673841aad681da3fe343c4a902a3bf6c (patch) | |
| tree | eec5e8bf16e20eef2f192ca056e8702d47c5d989 /lib/roo/excelx/sheet_doc.rb | |
| parent | eeb0202b3730c4b9596b6b409f565e9f5a8dce4c (diff) | |
| parent | 46eadd2724cd841328d90c3143a485fcdf423ed6 (diff) | |
Update upstream source from tag 'upstream/2.8.2'
Update to upstream version '2.8.2'
with Debian dir b1ec8fbbaccffac36549be25adf232dec8fac090
Diffstat (limited to 'lib/roo/excelx/sheet_doc.rb')
| -rwxr-xr-x | lib/roo/excelx/sheet_doc.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/roo/excelx/sheet_doc.rb b/lib/roo/excelx/sheet_doc.rb index 2b3aa39..6da4c26 100755 --- a/lib/roo/excelx/sheet_doc.rb +++ b/lib/roo/excelx/sheet_doc.rb @@ -22,7 +22,7 @@ module Roo def hyperlinks(relationships) # If you're sure you're not going to need this hyperlinks you can discard it - @hyperlinks ||= if @options[:no_hyperlinks] + @hyperlinks ||= if @options[:no_hyperlinks] || !relationships.include_type?("hyperlink") {} else extract_hyperlinks(relationships) @@ -185,7 +185,10 @@ module Roo if relationship = relationships[hyperlink['id']] target_link = relationship['Target'] target_link += "##{hyperlink['location']}" if hyperlink['location'] - hash[::Roo::Utils.ref_to_key(hyperlink["ref"].to_s)] = target_link + + Roo::Utils.coordinates_in_range(hyperlink["ref"].to_s) do |coord| + hash[coord] = target_link + end end end end |
