mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
cef67bdc45
In case number_format() is called on a format that does not have format ID set, number_format() dereferences d_->parent->number_formats.end() causing a crash. This might happen when calling cell::is_date() on a cell that has type 'number' without a number format but some other styling set. This might never occur in spreadsheet files created by commercial applications but xlnt certainly allows to create such a file. We therefore fix number_format here by returning the general number format as a fallback. |
||
---|---|---|
.. | ||
cell | ||
detail | ||
drawing | ||
packaging | ||
styles | ||
utils | ||
workbook | ||
worksheet | ||
CMakeLists.txt |