summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/roi.c b/roi.c
index fa084eb..d278502 100644
--- a/roi.c
+++ b/roi.c
@@ -201,11 +201,12 @@ draw_rubberband(struct roi *roi, GtkWidget *widget, cairo_t *cr)
context = gtk_widget_get_style_context(widget);
gtk_style_context_save(context);
- gtk_style_context_add_class(context, GTK_STYLE_CLASS_RUBBERBAND);
+ gtk_style_context_add_class(context, GTK_STYLE_CLASS_RUBBERBAND);
calc_rubberband_rect(roi, &x, &y, &width, &height);
gtk_render_background(context, cr, x, y, width, height);
gtk_render_frame(context, cr, x, y, width, height);
+
gtk_style_context_restore(context);
}