From cf46f8809e3ad3e10cbbbd7027afa9d7f69d24ae Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Mar 2022 14:53:56 +0100 Subject: [PATCH] Don't ignore custom formats in wxDataViewCtrl::EnableDropTarget() Since the changes of 7129d2b11c (Accept multiple data formats via drag-and-drop in wxDataViewCtrl, 2021-08-22) custom data formats were simply ignored because CreateDataObject() helper didn't do anything for them. Fix this by simply continuing to handle them in the same way as before, i.e. by creating a wxCustomDataObject for the specified format. Closes #22112. --- src/common/datavcmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index b9a7512fc2..a7b951066d 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -1735,6 +1735,7 @@ wxDataViewCtrlBase::CreateDataObject(const wxVector& formats) case wxDF_ENHMETAFILE: case wxDF_LOCALE: case wxDF_PRIVATE: + default: // any other custom format dataObject->Add(new wxCustomDataObject(formats[i])); break;