diff options
-rw-r--r-- | gui/EditTextWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/EditTextWidget.cpp b/gui/EditTextWidget.cpp index 7df68c1f82..98e29c49b8 100644 --- a/gui/EditTextWidget.cpp +++ b/gui/EditTextWidget.cpp @@ -70,7 +70,7 @@ void EditTextWidget::handleMouseDown(int x, int y, int button, int clickCount) { uint i; for (i = 0; i < _editString.size(); ++i) { - width += g_gui.getCharWidth(_editString[i]); + width += g_gui.theme()->getCharWidth(_editString[i], _font); if (width >= x) break; } |