From a7f4d0fffca38300ad0f74303eff8adb2682c921 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 16 Apr 2016 02:16:47 +0000 Subject: [PATCH] Fully reinitialize graphics window in AfterNewFile(). Before this commit it was possible to cause a crash by e.g. selecting a face and pressing Ctrl+N, or numerous other glitches. --- src/graphicswin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphicswin.cpp b/src/graphicswin.cpp index dc8d70f..bca2ab5 100644 --- a/src/graphicswin.cpp +++ b/src/graphicswin.cpp @@ -242,7 +242,7 @@ void GraphicsWindow::Init(void) { context.active = false; // Do this last, so that all the menus get updated correctly. - EnsureValidActives(); + ClearSuper(); } void GraphicsWindow::AnimateOntoWorkplane(void) {