Copy dropped data to wxDataViewEvent

Existing code relies on GetDataBuffer() returning a valid pointer, so we
need to ensure that this is the case, even if this means copying the
data into an internal buffer.
This commit is contained in:
Vadim Zeitlin
2021-12-10 20:30:24 +01:00
parent 7797ffc730
commit 33018ea7a9
2 changed files with 12 additions and 1 deletions

View File

@@ -972,6 +972,7 @@ protected:
#if wxUSE_DRAG_AND_DROP
wxDataObject *m_dataObject;
wxMemoryBuffer m_dataBuf;
wxDataFormat m_dataFormat;
void* m_dataBuffer;
size_t m_dataSize;