fix pasteboard remove method (PR 8565)

svn: r5788
This commit is contained in:
Matthew Flatt 2007-03-19 03:49:34 +00:00
parent 3803b4e045
commit 808d8732e2

View File

@ -950,7 +950,10 @@ Bool wxMediaPasteboard::_Delete(wxSnip *del_snip,
snip->flags += wxSNIP_CAN_DISOWN;
SnipSetAdmin(snip, NULL);
snip->flags -= wxSNIP_CAN_DISOWN;
if (!del)
if (!snip->GetAdmin())
snip->flags -= wxSNIP_OWNED;
if (!modified)
SetModified(TRUE);