fix for when wxUSE_DRAG_AND_DROP==0 (e.g. in wxX11)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-02-10 00:15:37 +00:00
parent e232b083f9
commit 6effcb7c9d

View File

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