From 922d7f6c96f81a33538900f8a8992a5b6f640874 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 23 Apr 2020 02:00:05 +0800 Subject: ... --- include/cru/ui/render/text_render_object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/cru/ui') diff --git a/include/cru/ui/render/text_render_object.hpp b/include/cru/ui/render/text_render_object.hpp index 1c472753..c062c9f0 100644 --- a/include/cru/ui/render/text_render_object.hpp +++ b/include/cru/ui/render/text_render_object.hpp @@ -27,7 +27,7 @@ class TextRenderObject : public RenderObject { void SetFont(std::shared_ptr font); std::vector TextRangeRect(const TextRange& text_range); - Point TextSingleRect(int position, bool trailing); + Point TextSingleRect(gsl::index position, bool trailing); platform::graph::TextHitTestResult TextHitTest(const Point& point); std::optional GetSelectionRange() const { -- cgit v1.2.3