From 50b5afdb7e68cdec8f77020b578dc3f6874933bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 18 Feb 2014 23:45:53 +0300 Subject: fix compilation with SDL2. --- src/gui/widgets/textfield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/textfield.cpp') 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(); -- cgit v1.2.3-70-g09d2