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:
authorJulian Eisel <eiseljulian@gmail.com>2020-01-14 20:48:58 +0300
committerJulian Eisel <eiseljulian@gmail.com>2020-01-14 21:08:51 +0300
commite4bf08a363d98bf2bd3012349b314570e6e86dba (patch)
tree62b410d665c39fd0931a9d234bdd7d3660403e4c /source/blender
parent2a638e8c90839ec5c95288240d2114b12a33b8f4 (diff)
Fix invalid min/max sizes of global areas after loading factory settings
Simply loading factory settings and dragging an area separator immediately after would cause an assert because of these invalid sizes. Seems that since rB07499c04f612 we correctly initialize DPI related UserPref values with 0, which caused DPI dependant initialization of global areas to set ScrArea.global.size_min/max to 0 too.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index e68d4902c66..a711b35e2c9 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -702,6 +702,8 @@ static void wm_window_ghostwindow_ensure(wmWindowManager *wm, wmWindow *win, boo
/* happens after fileread */
wm_window_ensure_eventstate(win);
+
+ WM_window_set_dpi(win);
}
/* add keymap handlers (1 handler for all keys in map!) */