aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorEugene Sandulenko2010-05-26 13:26:52 +0000
committerEugene Sandulenko2010-05-26 13:26:52 +0000
commit2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323 (patch)
tree63d950031e630582d4bb42a3269a101fd6835aa1 /gui
parent1a01caece762dd06886460830c4cdaf7de42c8d8 (diff)
downloadscummvm-rg350-2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323.tar.gz
scummvm-rg350-2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323.tar.bz2
scummvm-rg350-2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323.zip
Patch #2951677: Text boxes should init with the caret at the beginning
svn-id: r49239
Diffstat (limited to 'gui')
-rw-r--r--gui/editable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/editable.cpp b/gui/editable.cpp
index 723384ed44..058f08e233 100644
--- a/gui/editable.cpp
+++ b/gui/editable.cpp
@@ -65,7 +65,7 @@ void EditableWidget::setEditString(const String &str) {
// TODO: We probably should filter the input string here,
// e.g. using tryInsertChar.
_editString = str;
- _caretPos = _editString.size();
+ _caretPos = 0;
}
bool EditableWidget::tryInsertChar(byte c, int pos) {