svgio/qa/cppunit/data/tdf149893.svg |    2 +-
 svgio/source/svgreader/svgtools.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a3e9fede7e998979db7941a527496eb98c822e98
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Jul 8 12:12:54 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Jul 8 13:54:09 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>

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())
             {

Reply via email to