From ec592d7f3ebad36e669525592005b9a3da5893f4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 12 Mar 2009 12:14:14 +0000 Subject: [PATCH] compilation fix for ANSI build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textentry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp index 7c9b9e8dee..20abc5559b 100644 --- a/src/gtk/textentry.cpp +++ b/src/gtk/textentry.cpp @@ -107,7 +107,8 @@ wxString wxTextEntry::DoGetValue() const { const wxGtkString value(gtk_editable_get_chars(GetEditable(), 0, -1)); - return wxGTK_CONV_BACK_FONT(value, GetEditableWindow()->GetFont()); + return wxGTK_CONV_BACK_FONT(value, + const_cast(this)->GetEditableWindow()->GetFont()); } void wxTextEntry::Remove(long from, long to) @@ -318,7 +319,7 @@ void wxTextEntry::SendMaxLenEvent() // generating a dummy wxEVT_COMMAND_TEXT_UPDATED event //IgnoreNextTextUpdate(); - wxWindow * const win = const_cast(GetEditableWindow()); + wxWindow * const win = GetEditableWindow(); wxCommandEvent event(wxEVT_COMMAND_TEXT_MAXLEN, win->GetId()); event.SetEventObject(win); event.SetString(GetValue()); -- 2.47.2