if the wxTextCtrl is empty set by SetInsertionPointEnd to 0 and not to -1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -414,7 +414,7 @@ void wxTextCtrl::SetInsertionPointEnd()
|
||||
pos = gtk_text_get_length( GTK_TEXT(m_text) );
|
||||
else
|
||||
pos = GTK_ENTRY(m_text)->text_length;
|
||||
SetInsertionPoint( pos-1 );
|
||||
SetInsertionPoint((pos-1)>0 ? (pos-1):0);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetEditable( bool editable )
|
||||
|
Reference in New Issue
Block a user