Some "simple" data objects, such as wxTextDataObject, are actually not simple
and support multiple formats so pass the real format to them so that they
could do the right thing.
Closes #14101.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70908
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxT("unsupported format in wxDataObjectComposite"));
m_receivedFormat = format;
- return dataObj->SetData( len, buf );
+
+ // Notice that we must pass "format" here as wxTextDataObject, that we can
+ // have as one of our "simple" sub-objects actually is not that simple and
+ // can support multiple formats (ASCII/UTF-8/UTF-16/...) and so needs to
+ // know which one it is given.
+ return dataObj->SetData( format, len, buf );
}
// ----------------------------------------------------------------------------