summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-05-09 11:47:28 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-05-09 11:47:28 +0100
commitd209fe952f24d32b97606ac8e8c62b09adaaeb79 (patch)
tree0d72498530607a1a53073773e503c166743748d0
parent0ee9f4a61a1b982cf8992121ce41acd2094f17ce (diff)
[summary-chart] Use save()/restore() to preserve the original clip.
-rw-r--r--src/summary-chart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/summary-chart.c b/src/summary-chart.c
index 669d6fe..7196fb3 100644
--- a/src/summary-chart.c
+++ b/src/summary-chart.c
@@ -277,6 +277,7 @@ summary_chart_expose (GtkWidget *widget, GdkEventExpose *ev)
if (self->image != NULL) {
cairo_matrix_t matrix;
+ cairo_save (cr);
cairo_fill_preserve (cr);
cairo_clip (cr);
@@ -286,7 +287,7 @@ summary_chart_expose (GtkWidget *widget, GdkEventExpose *ev)
cairo_pattern_set_matrix (self->image, &matrix);
cairo_set_source (cr, self->image);
cairo_paint (cr);
- cairo_reset_clip (cr);
+ cairo_restore (cr);
} else
cairo_fill (cr);