]> git.saurik.com Git - wxWidgets.git/commitdiff
change in wxFileDataObject::SetData behaviour broke DnD of multiple files
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 9 Apr 2002 13:51:04 +0000 (13:51 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 9 Apr 2002 13:51:04 +0000 (13:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dnd.cpp
src/mac/dnd.cpp

index cfe9297e3c3147f4c57f9c8c92de38d50291b421..7ab73a19d11fa3b70ab19ea54994f5689437b44c 100644 (file)
@@ -211,7 +211,7 @@ bool wxDropTarget::GetData()
                   {
                     HFSFlavor* theFile = (HFSFlavor*) theData ;
                     wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ;
                   {
                     HFSFlavor* theFile = (HFSFlavor*) theData ;
                     wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ;
-                    m_dataObject->SetData( format , name.Length() + 1, name ) ;
+                    ((wxFileDataObject*)m_dataObject)->AddFile( name ) ;
                   }
                   else
                   {
                   }
                   else
                   {
index cfe9297e3c3147f4c57f9c8c92de38d50291b421..7ab73a19d11fa3b70ab19ea54994f5689437b44c 100644 (file)
@@ -211,7 +211,7 @@ bool wxDropTarget::GetData()
                   {
                     HFSFlavor* theFile = (HFSFlavor*) theData ;
                     wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ;
                   {
                     HFSFlavor* theFile = (HFSFlavor*) theData ;
                     wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ;
-                    m_dataObject->SetData( format , name.Length() + 1, name ) ;
+                    ((wxFileDataObject*)m_dataObject)->AddFile( name ) ;
                   }
                   else
                   {
                   }
                   else
                   {