aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 20:40:20 +0800
committercrupest <crupest@outlook.com>2020-10-28 20:40:20 +0800
commit8f27c928c2ce4f3617c9113582a93da10721114c (patch)
treea9ef36edb8497bac115e8cfaaee15bcaf1b96282 /src
parentcf07d193b97168048a72793c59f096504acf78a5 (diff)
downloadcru-8f27c928c2ce4f3617c9113582a93da10721114c.tar.gz
cru-8f27c928c2ce4f3617c9113582a93da10721114c.tar.bz2
cru-8f27c928c2ce4f3617c9113582a93da10721114c.zip
...
Diffstat (limited to 'src')
-rw-r--r--src/ui/controls/TextControlService.hpp2
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