]> git.saurik.com Git - wxWidgets.git/commitdiff
unicode fix
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 May 2004 16:49:02 +0000 (16:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 May 2004 16:49:02 +0000 (16:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 836ae86f5c5e725f62cc51420436230a06117975..7f8c55e784bd713f2738bbfb32581d65a196eaaf 100644 (file)
@@ -312,7 +312,11 @@ static pascal OSStatus wxMacWindowServiceEventHandler( EventHandlerCallRef handl
                 char *content = new char[textSize] ;
                 GetScrapFlavorData (scrapRef, kTXNTextData, &pastedSize, content );  
                 content[textSize-1] = 0 ;
+#if wxUSE_UNICODE
+                textCtrl->WriteText( wxString( content , wxConvLocal )  );
+#else
                 textCtrl->WriteText( wxString( content ) ) ;
+#endif
                 delete[] content ;
                 result = noErr ;
             }