MathNya / umya-spreadsheet

A pure rust library for reading and writing spreadsheet files
MIT License
240 stars 41 forks source link

A part of a border settings of a merged cell are lost #67

Closed usagi closed 2 years ago

usagi commented 2 years ago

Repro

  1. Create a test input.xlsx file using Excel that has:
    • (a) a merged cell
    • (b) a borders of (a)
  2. Read: let book = umya_spreadsheet::reader::xlsx::read(Path::new("input.xlsx")).unwrap()
  3. Write: umya_spreadsheet::writer::xlsx::write(&book, Path::new("output.xlsx")).unwrap()

Screenshots

"input.xlsx"

image

"output.xlsx"

image

MathNya commented 2 years ago

I am not sure if it is due to the version of Excel or not, but I could not reproduce the event here. If possible, we would appreciate an input.xlsx file.

usagi commented 2 years ago

It worked fine too with umya-spreadsheet- 0.7.0 and 19dddbf (the latest git version)! I was test with umya-spreadsheet- 0.6.0 at the reporting. So sorry, thank you for resolving the issue.