summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:23:45 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:23:45 +0200
commit0f67d5d7893f2b3c61c1ae113bb5d763a6aab476 (patch)
tree6e18139c09147cfa1c7bb32e4e8bf70df97759bb
parentb23c74df7b062dff078cf1368de201cea6d113d8 (diff)
downloadcv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.tar.gz
cv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.tar.bz2
cv-0f67d5d7893f2b3c61c1ae113bb5d763a6aab476.zip
roi: Trivial reorder in draw_rubberband
-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);
}