From ed978fc8dcf7f4498663fb085f8e6dbff2cc5560 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 26 Mar 2013 14:58:44 +0000 Subject: [PATCH] win32 windowing robustness fix. --- .../native/juce_win32_Windowing.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 1e6aa93dab..93ea916923 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -584,9 +584,11 @@ public: h + windowBorder.getTopAndBottom(), SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER); - updateBorderSize(); - - repaintNowIfTransparent(); + if (isValidPeer (this) + { + updateBorderSize(); + repaintNowIfTransparent(); + } } void setBounds (int x, int y, int w, int h, bool isNowFullScreen) @@ -601,9 +603,11 @@ public: h + windowBorder.getTopAndBottom(), SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOOWNERZORDER); - updateBorderSize(); - - repaintNowIfTransparent(); + if (isValidPeer (this) + { + updateBorderSize(); + repaintNowIfTransparent(); + } } Rectangle getBounds() const