diff --git a/source/detail/serialization/xlsx_consumer.cpp b/source/detail/serialization/xlsx_consumer.cpp index 228f8258..24f81824 100644 --- a/source/detail/serialization/xlsx_consumer.cpp +++ b/source/detail/serialization/xlsx_consumer.cpp @@ -2289,7 +2289,7 @@ void xlsx_consumer::read_stylesheet() else if (current_style_element == qn("spreadsheetml", "fonts")) { auto &fonts = stylesheet.fonts; - auto count = parser().attribute("count"); + auto count = parser().attribute("count", 0); if (parser().attribute_present(qn("x14ac", "knownFonts"))) { @@ -2426,7 +2426,7 @@ void xlsx_consumer::read_stylesheet() if (count != stylesheet.fonts.size()) { - throw xlnt::exception("counts don't match"); + // throw xlnt::exception("counts don't match"); } } else if (current_style_element == qn("spreadsheetml", "numFmts"))