Commit 5a33b2f7 authored by Morten Welinder's avatar Morten Welinder

mstyle: sanity check underline type.

parent ec9dc59a
2015-05-09 Morten Welinder <>
* src/mstyle.c (gnm_style_set_font_uline): Add sanity check.
2015-04-28 Morten Welinder <>
* src/xml-sax-read.c (read_file_free_state): Plug leaks related to
......@@ -1469,6 +1469,8 @@ void
gnm_style_set_font_uline (GnmStyle *style, GnmUnderline const underline)
g_return_if_fail (style != NULL);
g_return_if_fail (underline >= UNDERLINE_NONE && underline <= UNDERLINE_DOUBLE_LOW);
elem_changed (style, MSTYLE_FONT_UNDERLINE);
elem_set (style, MSTYLE_FONT_UNDERLINE);
style->font_detail.underline = underline;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment