unicode fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -312,7 +312,11 @@ static pascal OSStatus wxMacWindowServiceEventHandler( EventHandlerCallRef handl
|
|||||||
char *content = new char[textSize] ;
|
char *content = new char[textSize] ;
|
||||||
GetScrapFlavorData (scrapRef, kTXNTextData, &pastedSize, content );
|
GetScrapFlavorData (scrapRef, kTXNTextData, &pastedSize, content );
|
||||||
content[textSize-1] = 0 ;
|
content[textSize-1] = 0 ;
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
textCtrl->WriteText( wxString( content , wxConvLocal ) );
|
||||||
|
#else
|
||||||
textCtrl->WriteText( wxString( content ) ) ;
|
textCtrl->WriteText( wxString( content ) ) ;
|
||||||
|
#endif
|
||||||
delete[] content ;
|
delete[] content ;
|
||||||
result = noErr ;
|
result = noErr ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user