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:
Mart Raudsepp
1998-11-09 08:09:03 +00:00
parent f9e02ac76b
commit 605c9c8318
2 changed files with 2 additions and 2 deletions

View File

@@ -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 )