diff options
author | Eugene Sandulenko | 2010-05-26 13:26:52 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-05-26 13:26:52 +0000 |
commit | 2f4f70f3b02f49dc65ec2ba74adf29fbbcbd7323 (patch) | |
tree | 63d950031e630582d4bb42a3269a101fd6835aa1 | |
parent | 1a01caece762dd06886460830c4cdaf7de42c8d8 (diff) | |
download | scummvm-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
-rw-r--r-- | gui/editable.cpp | 2 |
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) { |