[Scummvm-cvs-logs] SF.net SVN: scummvm:[49239] scummvm/trunk/gui/editable.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed May 26 15:26:52 CEST 2010
Revision: 49239
http://scummvm.svn.sourceforge.net/scummvm/?rev=49239&view=rev
Author: sev
Date: 2010-05-26 13:26:52 +0000 (Wed, 26 May 2010)
Log Message:
-----------
Patch #2951677: Text boxes should init with the caret at the beginning
Modified Paths:
--------------
scummvm/trunk/gui/editable.cpp
Modified: scummvm/trunk/gui/editable.cpp
===================================================================
--- scummvm/trunk/gui/editable.cpp 2010-05-26 13:24:32 UTC (rev 49238)
+++ scummvm/trunk/gui/editable.cpp 2010-05-26 13:26:52 UTC (rev 49239)
@@ -65,7 +65,7 @@
// 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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list