diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-04 11:34:25 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2024-12-12 14:44:05 +0100 |
commit | e7abdda4ef2c480e02f6edacc2ad710bfc6ddecc (patch) | |
tree | 2de9a172a798481fc5f15cc790523775812a3f60 | |
parent | e617e280780ead9ed6b54b6b3510e7bddc73ff9e (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/+/177788
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit d775d637b9ff7619aba195559deed6e9a341e372)
-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 eaabf789e2ac..085231e02254 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 |