[gimp] app: no need to cairo_save()/restore() around drawing a canvas	item
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp] app: no need to cairo_save()/restore() around drawing a canvas	item
- Date: Fri,  8 Oct 2010 14:13:56 +0000 (UTC)
commit 914ac9aa1183bad3c0259fecc2115494f5388a86
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 8 16:13:21 2010 +0200
    app: no need to cairo_save()/restore() around drawing a canvas item
 app/display/gimpdisplayshell-callbacks.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 390eec1..e8ff2de 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -2331,9 +2331,7 @@ gimp_display_shell_canvas_expose_image (GimpDisplayShell *shell,
   cairo_restore (cr);
 
   /* draw canvas items */
-  cairo_save (cr);
   gimp_canvas_item_draw (shell->canvas_item, cr);
-  cairo_restore (cr);
 
   /* restart (and recalculate) the selection boundaries */
   gimp_display_shell_selection_control (shell, GIMP_SELECTION_ON);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]