Oops. More advanced warning recovered a mechanic mistake. Fixing.

svn-id: r22671
This commit is contained in:
Eugene Sandulenko 2006-05-27 06:08:44 +00:00
parent b56c7b88d7
commit 9943084227

View File

@ -56,7 +56,7 @@ void EditableWidget::setEditString(const String &str) {
_editString = str;
_caretPos = _editString.size();
_editScrollOffset = (g_gui.getStringWidth(_editString) - (getEditRect().width()), _font);
_editScrollOffset = g_gui.getStringWidth(_editString, _font) - getEditRect().width();
if (_editScrollOffset < 0)
_editScrollOffset = 0;
}