Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-11-05 23:51:36 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-11-05 23:51:36 +0300
commit6771a0cb6d27d25cd7e4791e62e81577bbf35664 (patch)
tree71ae5f4fd57bf22b24ac9fee1b080f930861ed12 /source/blender/editors
parentbb0f4310aa02564e6677fad317c1aba6be17175b (diff)
Fix #19763: crash with tooltip open & maximizing area to fullscreen.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/screen/screen_edit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index eb8fa66670c..acf5bcd739e 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -54,6 +54,8 @@
#include "ED_screen.h"
#include "ED_screen_types.h"
+#include "UI_interface.h"
+
/* XXX actually should be not here... solve later */
#include "wm_subwindow.h"
@@ -1416,6 +1418,15 @@ void ED_screen_delete_scene(bContext *C, Scene *scene)
ScrArea *ed_screen_fullarea(bContext *C, wmWindow *win, ScrArea *sa)
{
bScreen *sc, *oldscreen;
+ ARegion *ar;
+
+ if(sa) {
+ /* ensure we don't have a button active anymore, can crash when
+ switching screens with tooltip open because region and tooltip
+ are no longer in the same screen */
+ for(ar=sa->regionbase.first; ar; ar=ar->next)
+ uiFreeBlocks(C, &ar->uiblocks);
+ }
if(sa && sa->full) {
short fulltype;