diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-07-08 12:12:54 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-07-08 13:54:09 +0200 |
commit | a3e9fede7e998979db7941a527496eb98c822e98 (patch) | |
tree | 84176a4ed05e0dcbed2c4c0c067dda0ed5ab870d /svgio | |
parent | 8abe6916308ed849ece9b3a58b860a73b04fec51 (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/qa/cppunit/data/tdf149893.svg | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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 c73d4c768451..c559bd620fbf 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()) { |