applying, closes #9012

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-05-15 04:32:36 +00:00
parent 1cdb63aa80
commit faa88eb768

View File

@@ -1125,6 +1125,15 @@ long 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
@@ -1133,6 +1142,7 @@ long wxMacMLTEControl::GetLastPosition() const
actualsize = GetHandleSize( theText ) ;
DisposeHandle( theText ) ;
}
#endif
else
{
actualsize = 0 ;