fix wrong clear selection (modified patch 1763916)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-08-15 11:52:13 +00:00
parent 6d7aee4f47
commit 511383f91b
2 changed files with 9 additions and 2 deletions

View File

@@ -73,12 +73,19 @@ public:
bool GTKOnTargetReceived(const wxDataFormat& format);
private:
// the data object for the specific selection
wxDataObject *& Data(Kind kind)
{
return kind == Primary ? m_dataPrimary : m_dataClipboard;
}
// the data object we're currently using
wxDataObject *& Data()
{
return m_usePrimary ? m_dataPrimary : m_dataClipboard;
return Data(m_usePrimary ? Primary : Clipboard);
}
// set or unset selection ownership
bool SetSelectionOwner(bool set = true);