]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/dnd.cpp
Back to previous call with -1 replacement.
[wxWidgets.git] / src / mac / classic / dnd.cpp
index 2fa7db53cb42848bc01b574e47943e878cc4fbe8..e770b842d9ca0c94527ac4cfdeb558fa8ad6323f 100644 (file)
 #if wxUSE_DRAG_AND_DROP
 
 #include "wx/dnd.h"
-#include "wx/window.h"
-#include "wx/toplevel.h"
-#include "wx/app.h"
-#include "wx/gdicmn.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/window.h"
+    #include "wx/toplevel.h"
+    #include "wx/gdicmn.h"
+#endif // WX_PRECOMP
+
 #include "wx/mac/private.h"
 
 // ----------------------------------------------------------------------------
@@ -207,7 +211,7 @@ bool wxDropTarget::GetData()
                         {
                             theData[dataSize]=0 ;
                             wxString convert( theData , wxConvLocal ) ;
-                            m_dataObject->SetData( format, convert.Length() * sizeof(wxChar), (const wxChar*) convert );
+                            m_dataObject->SetData( format, convert.length() * sizeof(wxChar), (const wxChar*) convert );
                         }
                         else if ( theType == kDragFlavorTypeHFS )
                         {