tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.5k stars 423 forks source link

Type of pane's ySplit attribute is wrong #388

Open amoe opened 5 years ago

amoe commented 5 years ago

The type of ySplit in the pane is set as row_t, but it should be some fractional type. This causes the following error.

terminate called after throwing an instance of 'xml::parsing'
   what():  xl/worksheets/sheet2.xml:2:656: error: invalid value '1.0'

https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2010/cc880269(v%3Doffice.14)

https://github.com/tfussell/xlnt/blob/master/source/detail/serialization/xlsx_consumer.cpp#L515

This document was generated by exporting from Google Docs.

tfussell commented 5 years ago

I only wrote the xSplit and ySplit handling code for pane freezing. I didn't know that there were other kinds of non-integer splits. I'm working on this now.