From 37716184b34c84d589913b87e94bf774a905054f Mon Sep 17 00:00:00 2001 From: Daniel Martinek Date: Fri, 18 Mar 2016 16:49:19 +0100 Subject: [PATCH] Fixed coding style. --- imgui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 62c5288c..0baebacf 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6909,12 +6909,14 @@ bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int f { bool v = ((*flags & flags_value) == flags_value); bool pressed = ImGui::Checkbox(label, &v); - if(pressed) { + if (pressed) + { if (v) *flags |= flags_value; else *flags &= ~flags_value; } + return pressed; }