From 3d6e037c23cf118c333eb225ebcc5870d25623bc Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 14 Aug 2017 16:27:22 +0800 Subject: [PATCH] Comments (#1034) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 1940f0bf6..0ada9c045 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7287,7 +7287,7 @@ bool ImGui::Checkbox(const char* label, bool* v) const ImGuiID id = window->GetID(label); const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImRect check_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(label_size.y + style.FramePadding.y*2, label_size.y + style.FramePadding.y*2)); + const ImRect check_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(label_size.y + style.FramePadding.y*2, label_size.y + style.FramePadding.y*2)); // We want a square shape to we use Y twice ItemSize(check_bb, style.FramePadding.y); ImRect total_bb = check_bb;