applying, closes #9012
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@60637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2016,6 +2016,15 @@ wxTextPos wxMacMLTEControl::GetLastPosition() const
|
||||
wxTextPos actualsize = 0 ;
|
||||
|
||||
Handle theText ;
|
||||
#if wxUSE_UNICODE
|
||||
OSErr err = TXNGetDataEncoded( m_txn, kTXNStartOffset, kTXNEndOffset, &theText, kTXNUnicodeTextData );
|
||||
// all done
|
||||
if ( err == noErr )
|
||||
{
|
||||
actualsize = GetHandleSize( theText )/sizeof(UniChar);
|
||||
DisposeHandle( theText ) ;
|
||||
}
|
||||
#else
|
||||
OSErr err = TXNGetDataEncoded( m_txn, kTXNStartOffset, kTXNEndOffset, &theText, kTXNTextData );
|
||||
|
||||
// all done
|
||||
@@ -2024,6 +2033,7 @@ wxTextPos wxMacMLTEControl::GetLastPosition() const
|
||||
actualsize = GetHandleSize( theText ) ;
|
||||
DisposeHandle( theText ) ;
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
actualsize = 0 ;
|
||||
|
Reference in New Issue
Block a user