diff options
author | crupest <crupest@outlook.com> | 2020-10-28 20:40:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-28 20:40:20 +0800 |
commit | 8f27c928c2ce4f3617c9113582a93da10721114c (patch) | |
tree | a9ef36edb8497bac115e8cfaaee15bcaf1b96282 /src/ui/controls | |
parent | cf07d193b97168048a72793c59f096504acf78a5 (diff) | |
download | cru-8f27c928c2ce4f3617c9113582a93da10721114c.tar.gz cru-8f27c928c2ce4f3617c9113582a93da10721114c.tar.bz2 cru-8f27c928c2ce4f3617c9113582a93da10721114c.zip |
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/TextControlService.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/TextControlService.hpp b/src/ui/controls/TextControlService.hpp index b4102a49..8419f35c 100644 --- a/src/ui/controls/TextControlService.hpp +++ b/src/ui/controls/TextControlService.hpp @@ -196,7 +196,7 @@ class TextControlService : public Object { void DeleteSelectedText() { this->DeleteText(GetSelection()); - SetSelection(GetSelection().GetStart()); + SetSelection(GetSelection().Normalize().GetStart()); } // If some text is selected, then they are deleted first. Then insert text |