]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug with not accepting write-only formats in d&d
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Apr 2003 19:40:54 +0000 (19:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 6 Apr 2003 19:40:54 +0000 (19:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/dataobj.cpp

index 0a594fd69ff048fabd2e0854fd49d3596e28cd17..45d796c51cdb858f31c9990a1d01cde3267f5730 100644 (file)
@@ -439,7 +439,7 @@ STDMETHODIMP wxIDataObject::SetData(FORMATETC *pformatetc,
                 // as we can't fix this bug in explorer (it's a bug because it
                 // should only use formats returned by EnumFormatEtc), do the
                 // check here
-                if ( !m_pDataObject->IsSupportedFormat(format) ) {
+                if ( !m_pDataObject->IsSupported(format, wxDataObject::Set) ) {
                     // go away!
                     return DV_E_FORMATETC;
                 }