Fixed wxMac's wxTextCtrl::SetSelection so that (-1,-1) will select the
entire value like other ports do. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4365da58c8
commit
ef4a634b1b
@ -1194,6 +1194,11 @@ void wxTextCtrl::Remove(long from, long to)
|
||||
|
||||
void wxTextCtrl::SetSelection(long from, long to)
|
||||
{
|
||||
if ( from == -1 )
|
||||
from = 0;
|
||||
|
||||
if ( to == -1 )
|
||||
to = GetLastPosition();
|
||||
|
||||
if ( !m_macUsesTXN )
|
||||
{
|
||||
|
@ -1194,6 +1194,11 @@ void wxTextCtrl::Remove(long from, long to)
|
||||
|
||||
void wxTextCtrl::SetSelection(long from, long to)
|
||||
{
|
||||
if ( from == -1 )
|
||||
from = 0;
|
||||
|
||||
if ( to == -1 )
|
||||
to = GetLastPosition();
|
||||
|
||||
if ( !m_macUsesTXN )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user