Index: src/mac/carbon/textctrl.cpp
===================================================================
--- src/mac/carbon/textctrl.cpp (revision 51672)
+++ src/mac/carbon/textctrl.cpp (working copy)
@@ -1991,17 +1991,26 @@
wxTextPos wxMacMLTEControl::GetLastPosition() const
{
- wxTextPos actualsize = 0 ;
+ 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
if ( err == noErr )
{
actualsize = GetHandleSize( theText ) ;
DisposeHandle( theText ) ;
}
+#endif
else
{
actualsize = 0 ;
i have a funny feeling all i got to do is remove the 1991 line
also after reading
http://trac.wxwidgets.org/ticket/9012 does that mean the patch is nolonger needed