diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index f272ba9ee9..4fe9eb6932 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -974,7 +974,7 @@ void wxTextCtrl::Replace(wxTextPos from, wxTextPos to, const wxString& text) // set selection range for GetSelection and GetInsertionPoint call // if give a range but the text length that give doesn't equal the range // it mean clear the text in the range and set the text after `from` - if ( (to - from) != (int)text.Len() ) + if ( (to - from) != (wxTextPos)text.Len() ) { m_selStart = from; m_selEnd = from + text.Len(); @@ -1353,8 +1353,8 @@ void wxTextCtrl::SetInsertionPointEnd() wxTextPos wxTextCtrl::GetInsertionPoint() const { - //if has selection, the insert point should be the lower number of selection, - //else should be current cursor position + // if has selection, the insert point should be the lower number of selection, + // else should be current cursor position long from; if ( HasSelection() ) GetSelection(&from, NULL); @@ -4719,8 +4719,6 @@ bool wxTextCtrl::PerformAction(const wxControlAction& actionOrig, m_isModified = true; } - - return true; }