Commit d1d00d1d authored by Morten Welinder's avatar Morten Welinder

Style: avoid critical on seeing PANGO_UNDERLINE_ERROR.

parent 0f5ad9ee
2014-09-11 Morten Welinder <terra@gnome.org>
* src/style.c (gnm_translate_underline_from_pango): Survive
PANGO_UNDERLINE_ERROR.
2014-06-09 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
......
......@@ -644,7 +644,7 @@ GnmUnderline
gnm_translate_underline_from_pango (PangoUnderline pul)
{
g_return_val_if_fail (pul >= PANGO_UNDERLINE_NONE, UNDERLINE_NONE);
g_return_val_if_fail (pul <= PANGO_UNDERLINE_LOW, UNDERLINE_NONE);
g_return_val_if_fail (pul <= PANGO_UNDERLINE_ERROR, UNDERLINE_NONE);
switch (pul) {
case PANGO_UNDERLINE_SINGLE:
......@@ -653,6 +653,8 @@ gnm_translate_underline_from_pango (PangoUnderline pul)
return UNDERLINE_DOUBLE;
case PANGO_UNDERLINE_LOW:
return UNDERLINE_SINGLE_LOW;
case PANGO_UNDERLINE_ERROR:
/* What? */
case PANGO_UNDERLINE_NONE:
default:
return UNDERLINE_NONE;
......
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