diff options
| author | crupest <crupest@outlook.com> | 2018-11-06 20:43:25 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2018-11-06 20:43:25 +0800 |
| commit | a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae (patch) | |
| tree | 1613ccb55ec001a31d166ec0f4942ecd69b0c8ad | |
| parent | ef977514bc534ab39b14c1f14f49dfffbdd6d977 (diff) | |
| download | cru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.tar.gz cru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.tar.bz2 cru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.zip | |
Fix a bug in cursor.
| -rw-r--r-- | src/ui/controls/text_control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |
