diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx index eb7d2182566a..cad537f7d490 100644 --- a/oox/source/core/filterdetect.cxx +++ b/oox/source/core/filterdetect.cxx @@ -179,7 +179,7 @@ void FilterDetectDocHandler::parseWorkbook(const AttributeList& rAttribs) // tdf#165180 Remember filter when opening file as 'Office Open XML Spreadsheet' // (fileVersion can only exist once, and lowestEdited can only be defined once - else corrupt) - // lowestEdited: 4 is 2007, 5 is 2010, 6 is 201?, 7 is 201?-2024 + // lowestEdited: 4 is 2007, 5 is 2010, 6 is 2013 and 2016, 7 is 2019-2024 const sal_Int32 nDefaultValue = rAttribs.getInteger(XML_lastEdited, 99); if (rAttribs.getInteger(XML_lowestEdited, nDefaultValue) > 4) maOOXMLVariant = OOXMLVariant::ISO_Transitional; // Excel 2010+ diff --git a/sc/inc/scextopt.hxx b/sc/inc/scextopt.hxx index 1cc8b3f3bcd7..aa32557554bb 100644 --- a/sc/inc/scextopt.hxx +++ b/sc/inc/scextopt.hxx @@ -30,7 +30,10 @@ struct ScExtDocSettings double mfTabBarWidth; ///< Width of the tabbar, relative to frame window width (0.0 ... 1.0). sal_uInt32 mnLinkCnt; ///< Recursive counter for loading external documents. SCTAB mnDisplTab; ///< Index of displayed sheet. - std::optional moLowestEdited; ///< Oldest Excel version that edited this document. + /** moLowestEdited: oldest Excel version that edited this .XLSX - limit feature set to that. + * 4 is 2007, 5 is 2010, 6 is 2013 and 2016, 7 is 2019-2024+ + */ + std::optional moLowestEdited; explicit ScExtDocSettings(); };