aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-06 20:43:25 +0800
committercrupest <crupest@outlook.com>2018-11-06 20:43:25 +0800
commita2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae (patch)
tree1613ccb55ec001a31d166ec0f4942ecd69b0c8ad /src/ui/controls/text_control.cpp
parentef977514bc534ab39b14c1f14f49dfffbdd6d977 (diff)
downloadcru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.tar.gz
cru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.tar.bz2
cru-a2b1ac9a0ae8e50ae8ade2b2fe71e2742b097dae.zip
Fix a bug in cursor.
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r--src/ui/controls/text_control.cpp6
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);
}
}