summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-18 23:45:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-18 23:45:53 +0300
commit50b5afdb7e68cdec8f77020b578dc3f6874933bb (patch)
tree29a0ba34403c2b8f04594ba76eb86f70f8a74c1d /src/gui/widgets/textfield.cpp
parentf24b4360e73d45bc0830d2964c06e295890e5f18 (diff)
downloadmv-50b5afdb7e68cdec8f77020b578dc3f6874933bb.tar.gz
mv-50b5afdb7e68cdec8f77020b578dc3f6874933bb.tar.bz2
mv-50b5afdb7e68cdec8f77020b578dc3f6874933bb.tar.xz
mv-50b5afdb7e68cdec8f77020b578dc3f6874933bb.zip
fix compilation with SDL2.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index eb1484449..226d9172c 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -201,7 +201,7 @@ void TextField::keyPressed(KeyEvent &keyEvent)
#ifdef USE_SDL2
if (val == Key::TEXTINPUT)
{
- std::string str = keyEvent->getText();
+ std::string str = keyEvent.getText();
mText.insert(mCaretPosition, str);
mCaretPosition += str.size();
keyEvent.consume();