From 1a0e414d3a8a27ec4453d689eb6530f94fac6ad3 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 12 Nov 2016 21:17:30 +0100 Subject: [PATCH] Fixed uninitialized variables (wouldn't have a real effect because they'd be cleared in Begin()). --- imgui_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index 39597378..5d358253 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -490,9 +490,11 @@ struct ImGuiContext SetNextWindowSizeCond = 0; SetNextWindowContentSizeCond = 0; SetNextWindowCollapsedCond = 0; - SetNextWindowFocus = false; + SetNextWindowSizeConstraintRect = ImRect(); SetNextWindowSizeConstraintCallback = NULL; SetNextWindowSizeConstraintCallbackUserData = NULL; + SetNextWindowSizeConstraint = false; + SetNextWindowFocus = false; SetNextTreeNodeOpenVal = false; SetNextTreeNodeOpenCond = 0; @@ -599,6 +601,7 @@ struct IMGUI_API ImGuiDrawContext memset(StackSizesBackup, 0, sizeof(StackSizesBackup)); IndentX = 0.0f; + GroupOffsetX = 0.0f; ColumnsOffsetX = 0.0f; ColumnsCurrent = 0; ColumnsCount = 1;