From 73e73e6ef9a3b047ce4d221e5de1ba9d67419d26 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 30 Aug 2015 17:45:05 +0100 Subject: [PATCH] TextUnformatted(): simplifying --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index e1523e81f..d61eecba8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -4956,7 +4956,7 @@ void ImGui::TextUnformatted(const char* text, const char* text_end) text_pos.y += window->DC.CurrentLineTextBaseOffset; ImRect bb(text_pos, text_pos + text_size); - ItemSize(bb.GetSize()); + ItemSize(text_size); if (!ItemAdd(bb, NULL)) return;