GNOME Bugzilla – Bug 543986
gog_style_font_sax_save() writes unescaped font name
Last modified: 2008-07-21 14:16:58 UTC
Version: r2153 OS: Ubuntu Hardy Steps to reproduce: - Run Gnumeric - Insert > Chart - Leave the XY plot selected and press the Forward button - Select "X-Axis1" - Select the Font tab - Choose a font with an invalid XML character (I used one called m&ms) - Press the Insert button - Draw the chart on to the sheet - File > Save - Press the Save button Exported XML: <font color="0:0:0:FF" font="m&ms 8" auto-scale="1"/> Backtrace: Breakpoint 1, gog_style_font_sax_save (output=0x85bbc00, style=0x8582400) at gog-style.c:1608 1608 gsf_xml_out_add_cstr_unchecked (output, "font", str); (gdb) p str $5 = 0x85fe328 "m&ms 8" (gdb) bt
+ Trace 203394
Fixed both branches.