compilation fix for ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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<wxTextEntry *>(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<wxWindow *>(GetEditableWindow());
|
||||
wxWindow * const win = GetEditableWindow();
|
||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_MAXLEN, win->GetId());
|
||||
event.SetEventObject(win);
|
||||
event.SetString(GetValue());
|
||||
|
Reference in New Issue
Block a user