summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-07-08 12:12:54 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2022-07-11 06:36:43 +0200
commit4273b690e0dbe94ec76beea455ae8244ac8991e1 (patch)
tree8823eb4f6d46adadea7fcc8646a66aea9d78c02d /svgio
parent2c3c7df9675281f8261719a105dc8c71261adf99 (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> (cherry picked from commit dbcedd38c2720b6a85486bddb6544417326a9402) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136914 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/qa/cppunit/data/tdf149893.svg2
-rw-r--r--svgio/source/svgreader/svgtools.cxx2
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 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())
{