[cairo-commit] 2 commits - src/cairo-xml-surface.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 12 16:44:33 UTC 2020


 src/cairo-xml-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d66baf8ecd880ec9b0e282025a77fa223299d52a
Merge: 2982adec7 10760d29d
Author: Uli Schlachter <psychon at znc.in>
Date:   Wed Feb 12 17:44:18 2020 +0100

    Merge branch 'fix-xml-unclosed-scaled-font-element' of gitlab.freedesktop.org:mpsuzuki/cairo

commit 10760d29d140330102846e83c92e0bc6a9f359a4
Author: suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp>
Date:   Mon Apr 8 02:52:51 2019 +0000

    xml: fix unclosed <scaled-font> element
    
    a closing tag </scaled-font> has been missing,
    mistakenly an opening tag <scaled-font> has been emitted.
    
    See discussion in:
    https://lists.cairographics.org/archives/cairo/2018-December/028822.html
    https://lists.cairographics.org/archives/cairo/2019-January/028828.html

diff --git a/src/cairo-xml-surface.c b/src/cairo-xml-surface.c
index 35773a2b2..43cb6dddf 100644
--- a/src/cairo-xml-surface.c
+++ b/src/cairo-xml-surface.c
@@ -1007,7 +1007,7 @@ _cairo_xml_emit_scaled_font (cairo_xml_t *xml,
     }
 
     _cairo_xml_indent (xml, -2);
-    _cairo_xml_printf (xml, "<scaled-font>");
+    _cairo_xml_printf (xml, "</scaled-font>");
 
     return status;
 }


More information about the cairo-commit mailing list