git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@973
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pos = gtk_text_get_length( GTK_TEXT(m_text) );
else
pos = GTK_ENTRY(m_text)->text_length;
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 )
}
void wxTextCtrl::SetEditable( bool editable )
pos = gtk_text_get_length( GTK_TEXT(m_text) );
else
pos = GTK_ENTRY(m_text)->text_length;
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 )
}
void wxTextCtrl::SetEditable( bool editable )