diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-04 11:34:25 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-12-04 19:45:59 +0100 |
commit | c599597b35a312ccc6fdb71eb2b1bd165dcdf94b (patch) | |
tree | a29b12a03a860829486d33000a031044d27ef7e0 | |
parent | 5a58ad8a4b5ebf83b41b47fc2a688171dd79e9cd (diff) |
crashtesting: failure to reimport forum-es-2526.odt after export to odt
2nd arg to copy is len, not index. Probably a problem since:
commit 12a7a3d57d3dcf222b13fa9143c37736f8ea3d0b
CommitDate: Thu Sep 3 15:33:36 2020 +0200
Fix crashtest fdo77855.odt
in forum-es-2526.odt the input has:
fo:border-=".009cm solid #595959"
where 'fo:border-' is an unknown attr and "fo" ends up truncated to "f".
On export and reimport the 'f' is further truncated to '' and we assert
on this oddness.
Change-Id: Ie85d81947504bf15b9caefb92477c7f977eb5cb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177806
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/source/filter/xml/xmlimpit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index 141491db92de..ac8f4d851ed4 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -227,7 +227,7 @@ void SvXMLImportItemMapper::importXMLUnknownAttributes( SfxItemSet& rSet, int i = sName.indexOf(':'); if (i != -1) { - sPrefix = sName.copy(0, i-1); + sPrefix = sName.copy(0, i); sName = sName.copy(i+1); } // the sax parser doesn't reject these, strangely |