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

New commits:
commit 4273b690e0dbe94ec76beea455ae8244ac8991e1
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Jul 8 12:12:54 2022 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Mon Jul 11 06:36:43 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/+/136914
    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 82f1505670a1..f548ca8d2210 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