filter/source/svg/parserfragments.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 179f693ee0682c1e900f9047dfe67969c09a52f3 Author: Xisco Fauli <aniste...@gmail.com> Date: Sat Nov 14 01:55:03 2015 +0100 tdf#43257 SVG: Id value can contain other characters than alphanumerics Ie: "graph-1", "graph_1", "graph.1", etc... Besides, modify !( str_p("'") | str_p("\"") ) condition as the 'fill' attribute can be defined as fill="url('#graph1')" but not as fill="url("#graph1")" Change-Id: I7fb2c5b61487214ab02b207ad64d29bb2a1e107a Reviewed-on: https://gerrit.libreoffice.org/19961 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/filter/source/svg/parserfragments.cxx b/filter/source/svg/parserfragments.cxx index 1d9cc85..ec01fdf 100644 --- a/filter/source/svg/parserfragments.cxx +++ b/filter/source/svg/parserfragments.cxx @@ -556,9 +556,9 @@ bool parsePaintUri( std::pair<const char*,const char*>& o_rPaintUri, const bool bRes = parse(sPaintUri, // Begin grammar ( - str_p("url(") >> !( str_p("'") | str_p("\"") ) >> ("#") >> - (+alnum_p)[assign_a(o_rPaintUri)] >> - !( str_p("'") | str_p("\"") ) >> str_p(")") >> + str_p("url(") >> !( str_p("'") ) >> ("#") >> + (+(anychar_p - (str_p("'") | str_p(")"))))[assign_a(o_rPaintUri)] >> + !( str_p("'") ) >> str_p(")") >> *( str_p("none")[assign_a(io_rColor.second,false)] | str_p("currentColor")[assign_a(io_rColor.second,true)] | ColorGrammar(io_rColor.first)
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits