mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 05:47:50 +08:00
27 lines
622 B
Diff
27 lines
622 B
Diff
|
diff --git a/src/osx/carbon/clipbrd.cpp b/src/osx/carbon/clipbrd.cpp
|
||
|
index 274e200..6012d37 100644
|
||
|
--- a/src/osx/carbon/clipbrd.cpp
|
||
|
+++ b/src/osx/carbon/clipbrd.cpp
|
||
|
@@ -60,7 +60,11 @@ void wxClipboard::Clear()
|
||
|
|
||
|
bool wxClipboard::Flush()
|
||
|
{
|
||
|
- return false;
|
||
|
+ wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||
|
+
|
||
|
+ wxOSXPasteboard::GetGeneralClipboard()->Flush();
|
||
|
+
|
||
|
+ return true;
|
||
|
}
|
||
|
|
||
|
bool wxClipboard::Open()
|
||
|
@@ -105,6 +109,8 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||
|
|
||
|
data->WriteToSink(wxOSXPasteboard::GetGeneralClipboard());
|
||
|
|
||
|
+ Flush();
|
||
|
+
|
||
|
m_data = data;
|
||
|
|
||
|
return true;
|