Commit e8209b1f authored by Milan Crha's avatar Milan Crha

Correct mismatch of gtk_style_context_save() and gtk_style_context_restore()

parent df51ea5f
......@@ -174,6 +174,7 @@ e_table_header_draw_button (cairo_t *cr,
(padding.top + padding.bottom + 2 * HEADER_PADDING);
if (inner_width < 1 || inner_height < 1) {
gtk_style_context_restore (context);
return; /* nothing fits */
}
......@@ -195,8 +196,9 @@ e_table_header_draw_button (cairo_t *cr,
inner_width -= arrow_width + HEADER_PADDING;
break;
default:
cairo_restore (cr);
g_return_if_reached ();
gtk_style_context_restore (context);
g_warn_if_reached ();
return;
}
if (inner_width < 1) {
......@@ -275,10 +277,9 @@ e_table_header_draw_button (cairo_t *cr,
break;
}
/* coverity[dead_error_begin] */
default:
cairo_restore (cr);
g_return_if_reached ();
g_warn_if_reached ();
break;
}
g_object_unref (layout);
......
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