svgio/qa/cppunit/data/tdf149893.svg | 2 +- svgio/source/svgreader/svgtools.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7e5abaa388e39e01b02c0d6c9b2d60ae56442f78 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Jul 8 12:12:54 2022 +0200 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Sat Jul 9 09:18:23 2022 +0200 related: tdf#149893: trim the color name Change-Id: I50689993cbe979557a10d2d16eb2112471bef77d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136895 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit dbcedd38c2720b6a85486bddb6544417326a9402) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136873 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/svgio/qa/cppunit/data/tdf149893.svg b/svgio/qa/cppunit/data/tdf149893.svg index 05c41eac96af..b6b241566d13 100644 --- a/svgio/qa/cppunit/data/tdf149893.svg +++ b/svgio/qa/cppunit/data/tdf149893.svg @@ -1,3 +1,3 @@ <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"> - <rect x="0" y="0" width="100%" height="100%" fill="GREEN"></rect> + <rect x="0" y="0" width="100%" height="100%" fill=" GREEN"></rect> </svg> diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index 94f8f20d5f0e..32a6030a7203 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -640,7 +640,7 @@ namespace svgio::svgreader { ColorTokenValueType(OUString("yellowgreen"), Color(154, 205, 50) ) }, }; - ColorTokenMapper::const_iterator aResult(aColorTokenMapperList.find(rName.toAsciiLowerCase())); + ColorTokenMapper::const_iterator aResult(aColorTokenMapperList.find(rName.toAsciiLowerCase().trim())); if(aResult == aColorTokenMapperList.end()) {