Flush the clipboard before closing it, not after

This commit is contained in:
Thomas Goyne 2014-06-01 07:05:18 -07:00
parent ff9beb850c
commit 917913b0ef

View file

@ -146,8 +146,8 @@ void SetClipboard(std::string const& new_data) {
wxClipboard *cb = wxClipboard::Get();
if (cb->Open()) {
cb->SetData(new wxTextDataObject(to_wx(new_data)));
cb->Close();
cb->Flush();
cb->Close();
}
}
@ -155,8 +155,8 @@ void SetClipboard(wxBitmap const& new_data) {
wxClipboard *cb = wxClipboard::Get();
if (cb->Open()) {
cb->SetData(new wxBitmapDataObject(new_data));
cb->Close();
cb->Flush();
cb->Close();
}
}