fix for when wxUSE_DRAG_AND_DROP==0 (e.g. in wxX11)
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 10 Feb 2009 00:15:37 +0000 (00:15 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 10 Feb 2009 00:15:37 +0000 (00:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dataview.h

index ce538affaea5209fe6c5b8d5c621b6ce784147e2..2f81131449fdddd353b8ad6da13b60755ca3f327 100644 (file)
@@ -747,10 +747,12 @@ public:
         m_model(NULL),
         m_value(wxNullVariant),
         m_column(NULL),
-        m_pos(-1,-1),
-        m_dataObject(NULL),
+        m_pos(-1,-1)
+#if wxUSE_DRAG_AND_DROP
+        , m_dataObject(NULL),
         m_dataBuffer(NULL),
         m_dataSize(0)
+#endif
         { }
 
     wxDataViewEvent(const wxDataViewEvent& event)
@@ -760,11 +762,13 @@ public:
         m_model(event.m_model),
         m_value(event.m_value),
         m_column(event.m_column),
-        m_pos(m_pos),
-        m_dataObject(event.m_dataObject),
+        m_pos(m_pos)
+#if wxUSE_DRAG_AND_DROP
+        , m_dataObject(event.m_dataObject),
         m_dataFormat(event.m_dataFormat),
         m_dataBuffer(event.m_dataBuffer),
         m_dataSize(event.m_dataSize)
+#endif
         { }
 
     wxDataViewItem GetItem() const { return m_item; }