]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct the direction passed to wxDataObject in wxGTK clipboard code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:54:53 +0000 (21:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:54:53 +0000 (21:54 +0000)
We should quert for IsSupportedFormat(format, Set) before calling SetData()
with this format, not for IsSupportedFormat(Get) which is the default and was
used by the code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/clipbrd.cpp

index 6e02151f4be01e56acd769335aeb58da61497047..fa9c32bc84cd0db477330d849670fa0b066fc258 100644 (file)
@@ -344,7 +344,7 @@ void wxClipboard::GTKOnSelectionReceived(const GtkSelectionData& sel)
     wxLogTrace(TRACE_CLIPBOARD, wxT("Received selection %s"),
                format.GetId().c_str());
 
-    if ( !m_receivedData->IsSupportedFormat(format) )
+    if ( !m_receivedData->IsSupportedFormat(format, wxDataObject::Set) )
         return;
 
     m_receivedData->SetData(format,