summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-03 01:35:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-03 01:48:01 +0200
commit6538c66308b98bc0f9875355b1247502aff7c07c (patch)
treeac98846492ff23e83af41bd440c2c3521fcc42bc /editor
parent181941780ae82c394754be42d28b92e57301fa77 (diff)
src/search: add tiny constant value to bbox size
Diffstat (limited to 'editor')
-rw-r--r--editor/tests/path-test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/tests/path-test.cpp b/editor/tests/path-test.cpp
index b5161e9f..84886a65 100644
--- a/editor/tests/path-test.cpp
+++ b/editor/tests/path-test.cpp
@@ -30,7 +30,7 @@ struct path_test final : base_test
point from, to;
object_id own_id;
uint32_t max_dist;
- Vector2ub own_size;
+ Vector2ui own_size;
} pending = {};
struct result_s
@@ -67,7 +67,8 @@ bool path_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_
has_pending = true;
pending = { .from = pt0, .to = *pt, .own_id = C->id,
- .max_dist = dist, .own_size = C->bbox_size, };
+ .max_dist = dist,
+ .own_size = Vector2ui(C->bbox_size) + Vector2ui(2), };
}
return true;
}