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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
commit40f45a7eac620fd8b99b3f29f3d0cac3c855dc84 (patch)
treeb42ed461143b7347d86cefe40d051d0585f460e8 /source/blender/editors/screen/area.c
parent0f5b53ba4dc03f89b43a633f73a59594e709ab11 (diff)
Cleanup: redundant NULL checks
Also use unsigned shifting for values not in int range.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 94b30f8e3b0..9e73fea12ce 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1354,7 +1354,7 @@ static void region_rect_recursive(ScrArea *sa, ARegion *ar, rcti *remainder, rct
if (ar->winy > 1) ar->sizey = (ar->winy + 0.5f) / UI_DPI_FAC;
/* exception for multiple overlapping regions on same spot */
- if (ar->overlap & (alignment != RGN_ALIGN_FLOAT)) {
+ if (ar->overlap && (alignment != RGN_ALIGN_FLOAT)) {
region_overlap_fix(sa, ar);
}