[gimp] Make the checks in GimpTool::initialize() work reliably



commit c9c28be9dfa7101c95b828b32a5a9d8f23c17eb1
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 21 18:27:50 2009 +0200

    Make the checks in GimpTool::initialize() work reliably
    
    Set tool->display and tool->drawable to NULL in button_release()
    so initialize() is actually called before each button_press().

 app/tools/gimpblendtool.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c
index 6643f0e..9201166 100644
--- a/app/tools/gimpblendtool.c
+++ b/app/tools/gimpblendtool.c
@@ -260,6 +260,9 @@ gimp_blend_tool_button_release (GimpTool              *tool,
 
       gimp_image_flush (image);
     }
+
+  tool->display  = NULL;
+  tool->drawable = NULL;
 }
 
 static void



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