diff options
author | Eugene Sandulenko | 2006-05-27 06:08:44 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-27 06:08:44 +0000 |
commit | 9943084227a1c1f06cc2703060c4f347e4362385 (patch) | |
tree | 4229c785dacd8adeea3ad96228f66ba7cd71f3c0 | |
parent | b56c7b88d7de665f92e1600f81dcec5c4af3a2aa (diff) | |
download | scummvm-rg350-9943084227a1c1f06cc2703060c4f347e4362385.tar.gz scummvm-rg350-9943084227a1c1f06cc2703060c4f347e4362385.tar.bz2 scummvm-rg350-9943084227a1c1f06cc2703060c4f347e4362385.zip |
Oops. More advanced warning recovered a mechanic mistake. Fixing.
svn-id: r22671
-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 f62f95459c..208383fe4b 100644 --- a/gui/editable.cpp +++ b/gui/editable.cpp @@ -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; } |