From 012debf65ad9d5b7e9a8ac77fa1facdaedcbc3e4 Mon Sep 17 00:00:00 2001 From: "lllucius@gmail.com" Date: Sat, 13 Dec 2014 21:52:31 +0000 Subject: [PATCH] Fix crash when opening Screenshot Tools --- src/toolbars/ToolBar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/toolbars/ToolBar.cpp b/src/toolbars/ToolBar.cpp index 18083d8fd..7a6695f60 100644 --- a/src/toolbars/ToolBar.cpp +++ b/src/toolbars/ToolBar.cpp @@ -437,6 +437,8 @@ void ToolBar::ReCreateButtons() // Get rid of any children we may have DestroyChildren(); + mGrabber = NULL; + mResizer = NULL; // Create the main sizer wxBoxSizer *ms = new wxBoxSizer( wxHORIZONTAL );