sw/source/filter/xml/xmlimpit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 719eb69232b83b0ed7e0dfc1d525804dd475f83b Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Dec 4 11:34:25 2024 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Dec 4 20:29:27 2024 +0100 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.mcnam...@collabora.com> (cherry picked from commit d775d637b9ff7619aba195559deed6e9a341e372) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177818 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index af8e30c19a5e..59678acf33ef 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