Browse Source

Fixed uninitialized variables (wouldn't have a real effect because they'd be cleared in Begin()).

ocornut 8 years ago
parent
commit
1a0e414d3a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      imgui_internal.h

+ 4 - 1
imgui_internal.h

@@ -490,9 +490,11 @@ struct ImGuiContext
         SetNextWindowSizeCond = 0;
         SetNextWindowSizeCond = 0;
         SetNextWindowContentSizeCond = 0;
         SetNextWindowContentSizeCond = 0;
         SetNextWindowCollapsedCond = 0;
         SetNextWindowCollapsedCond = 0;
-        SetNextWindowFocus = false;
+        SetNextWindowSizeConstraintRect = ImRect();
         SetNextWindowSizeConstraintCallback = NULL;
         SetNextWindowSizeConstraintCallback = NULL;
         SetNextWindowSizeConstraintCallbackUserData = NULL;
         SetNextWindowSizeConstraintCallbackUserData = NULL;
+        SetNextWindowSizeConstraint = false;
+        SetNextWindowFocus = false;
         SetNextTreeNodeOpenVal = false;
         SetNextTreeNodeOpenVal = false;
         SetNextTreeNodeOpenCond = 0;
         SetNextTreeNodeOpenCond = 0;
 
 
@@ -599,6 +601,7 @@ struct IMGUI_API ImGuiDrawContext
         memset(StackSizesBackup, 0, sizeof(StackSizesBackup));
         memset(StackSizesBackup, 0, sizeof(StackSizesBackup));
 
 
         IndentX = 0.0f;
         IndentX = 0.0f;
+        GroupOffsetX = 0.0f;
         ColumnsOffsetX = 0.0f;
         ColumnsOffsetX = 0.0f;
         ColumnsCurrent = 0;
         ColumnsCurrent = 0;
         ColumnsCount = 1;
         ColumnsCount = 1;