[Libreoffice-commits] .: svgio/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 21 10:01:29 PST 2012


 svgio/source/svgreader/svgtoken.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c50bf20fe2753576f3d82deefbdd8f1e0b41a54a
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Wed Nov 21 19:00:43 2012 +0100

    accept svg documents in svg: namespace (hack)
    
    Change-Id: I7678e25a2229abc2147510fe08165dc2faf5d977

diff --git a/svgio/source/svgreader/svgtoken.cxx b/svgio/source/svgreader/svgtoken.cxx
index a165e9a..0eef4fe 100644
--- a/svgio/source/svgreader/svgtoken.cxx
+++ b/svgio/source/svgreader/svgtoken.cxx
@@ -298,7 +298,7 @@ namespace svgio
                 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrText, SVGTokenText));
             }
 
-            const SVGTokenMapper::const_iterator aResult(aSVGTokenMapperList.find(rStr));
+            const SVGTokenMapper::const_iterator aResult(aSVGTokenMapperList.find(rStr.compareToAscii("svg:", 4) ? rStr : rStr.copy(4)));
 
             if(aResult == aSVGTokenMapperList.end())
             {


More information about the Libreoffice-commits mailing list