diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-10-29 00:55:21 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-10-29 00:56:37 +0300 |
commit | 05588f909a6e54233778268292e22eb40f0c3bce (patch) | |
tree | 8dbb91d0decebb43919dd58004aac48cbdea5e5e /source/blender/editors | |
parent | 49f6c3556c6e001ae2f10fef0336a8066095a29e (diff) |
Fix crash flipping region without active area
Would happen when cursor is in-between editors for example.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 150e1b1f5a5..44c2d3191e6 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3595,7 +3595,7 @@ static bool region_flip_poll(bContext *C) ScrArea *area = CTX_wm_area(C); /* don't flip anything around in topbar */ - if (area->spacetype == SPACE_TOPBAR) { + if (area && area->spacetype == SPACE_TOPBAR) { CTX_wm_operator_poll_msg_set(C, "Flipping regions in the Top-bar is not allowed"); return 0; } |