From 917913b0efc3c4c166c7606d89da9747e89c6ba1 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 1 Jun 2014 07:05:18 -0700 Subject: [PATCH] Flush the clipboard before closing it, not after --- src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 989ca9971..056514d2b 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -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(); } }