diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:23:45 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:23:45 +0200 |
commit | 0f67d5d7893f2b3c61c1ae113bb5d763a6aab476 (patch) | |
tree | 6e18139c09147cfa1c7bb32e4e8bf70df97759bb | |
parent | b23c74df7b062dff078cf1368de201cea6d113d8 (diff) | |
download | cv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.tar.gz cv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.tar.bz2 cv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.zip |
roi: Trivial reorder in draw_rubberband
-rw-r--r-- | roi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |