[gimp] app: don't draw the draw tool's items to the wrong display



commit f284e5f748267907d53c8157cf7d37109224f793
Author: Michael Natterer <mitch gimp org>
Date:   Sun Sep 26 16:56:26 2010 +0200

    app: don't draw the draw tool's items to the wrong display

 app/display/gimpdisplayshell-callbacks.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index da0ce5d..dbd1dc3 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -2335,7 +2335,8 @@ gimp_display_shell_canvas_expose_image (GimpDisplayShell *shell,
   {
     GimpTool *tool = tool_manager_get_active (shell->display->gimp);
 
-    if (GIMP_IS_DRAW_TOOL (tool))
+    if (GIMP_IS_DRAW_TOOL (tool) &&
+        GIMP_DRAW_TOOL (tool)->display == shell->display)
       {
         cairo_save (cr);
         gimp_draw_tool_draw_items (GIMP_DRAW_TOOL (tool), cr);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]