removal of pc-mac charset conversion for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -206,7 +206,7 @@ bool wxDropTarget::GetData()
|
||||
if( theType == 'TEXT' )
|
||||
{
|
||||
theData[dataSize]=0 ;
|
||||
wxString convert = wxMacMakeStringFromCString( theData ) ;
|
||||
wxString convert( theData , wxConvLocal ) ;
|
||||
m_dataObject->SetData( format, convert.Length() * sizeof(wxChar), (const wxChar*) convert );
|
||||
}
|
||||
else if ( theType == kDragFlavorTypeHFS )
|
||||
@@ -302,7 +302,7 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags))
|
||||
dataSize-- ;
|
||||
dataPtr[ dataSize ] = 0 ;
|
||||
wxString st( (wxChar*) dataPtr ) ;
|
||||
wxCharBuffer buf = wxMacStringToCString( st ) ;
|
||||
wxCharBuffer buf = st.mb_str( wxConvLocal) ;
|
||||
AddDragItemFlavor(theDrag, theItem, type , buf.data(), strlen(buf), 0);
|
||||
}
|
||||
else if (type == kDragFlavorTypeHFS )
|
||||
|
Reference in New Issue
Block a user