From a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 6 Nov 2018 20:43:25 +0800 Subject: Fix a bug in cursor. --- src/ui/controls/text_control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/controls/text_control.cpp') diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 08857e09..6ccb8a02 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -232,14 +232,14 @@ namespace cru::ui::controls { if (!is_selectable_) { - SetCursor(cursors::arrow); + SetCursor(nullptr); return; } const auto window = GetWindow(); if (window == nullptr) { - SetCursor(cursors::arrow); + SetCursor(nullptr); return; } @@ -253,6 +253,6 @@ namespace cru::ui::controls if (GetRect(RectRange::Padding).IsPointInside(p)) SetCursor(cursors::i_beam); else - SetCursor(cursors::arrow); + SetCursor(nullptr); } } -- cgit v1.2.3