xmloff: ODF import: adapt generator parsing to 2-digit major versions
commit1de65a9dcd1788c505303e489e5b7314d3a4e153
authorMichael Stahl <michael.stahl@allotropia.de>
Tue, 27 Jun 2023 12:50:02 +0000 (27 14:50 +0200)
committerMichael Stahl <michael.stahl@allotropia.de>
Wed, 28 Jun 2023 10:10:42 +0000 (28 12:10 +0200)
treee8c43a6685b9fcb1ee0620e5be3704829439c8f1
parentc19c3f7a9e3e2cd2d17f1542e81edbe0c1e373e5
xmloff: ODF import: adapt generator parsing to 2-digit major versions

DocumentInfo currently assumes that a LO version encoded in "BuildId"
property has only 1 digit major version, which is now wrong and would
start to give incorrect results when major version "30" will be detected
as LO_3x.

Add the dots as separators into the BuildId because it's not going to
work without.

Change-Id: I8918afe3642cbefa8488c57658f1505c9a20eddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153649
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit b1ce8bb078904db1df542f7a1c2ed527dde1a2d3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153694
include/xmloff/xmlimp.hxx
sd/source/filter/xml/sdxmlwrp.cxx
xmloff/qa/unit/uxmloff.cxx
xmloff/source/core/xmlimp.cxx
xmloff/source/meta/xmlmetai.cxx