From 7bd292ca511748b57a7ba8a3bae5da38820cdd6b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 2 Apr 2023 07:01:18 +0200 Subject: a --- editor/imgui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/imgui.cpp b/editor/imgui.cpp index d4bb38e9..327d09da 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -124,8 +124,7 @@ void app::draw_clickables() color, 0, ImDrawFlags_None, thickness); if (x.slope != 0.f) { - const auto bb_min = Vector2(min[0] + x.bb_min[0], min[1] + x.bb_min[1]); - const auto bb_max = Vector2(min[0] + x.bb_max[0], min[1] + x.bb_max[1]); + const auto bb_min = min + Vector2(x.bb_min), bb_max = min + Vector2(x.bb_max); draw.AddLine({ bb_min[0], bb_min[1] }, { bb_max[0], bb_max[1] }, color, thickness); } } -- cgit v1.2.3