X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cd51b2d275da04105d861b64073eef2e3aa3993..02a1dfbae942c883d8651e34dcfbc5153aabc56e:/src/mac/dnd.cpp?ds=sidebyside diff --git a/src/mac/dnd.cpp b/src/mac/dnd.cpp index cfe9297e3c..7ab73a19d1 100644 --- a/src/mac/dnd.cpp +++ b/src/mac/dnd.cpp @@ -211,7 +211,7 @@ bool wxDropTarget::GetData() { HFSFlavor* theFile = (HFSFlavor*) theData ; wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ; - m_dataObject->SetData( format , name.Length() + 1, name ) ; + ((wxFileDataObject*)m_dataObject)->AddFile( name ) ; } else {