From eed42abba5db06025ee75db0ef9265a894d4d97c Mon Sep 17 00:00:00 2001 From: dasimx Date: Sun, 23 Aug 2015 13:46:27 +0200 Subject: [PATCH] Don't change the clipboard in wxNotebook::SetPageImage() in wxOSX. For some reason the implementation of this method (see #12754) also put the image on the clipboard, which was completely unexpected and unnecessary, so just don't do it. Closes https://github.com/wxWidgets/wxWidgets/pull/77 (cherry picked from commit 10a4d15b273430dccc362bc703580742e27916d5) --- src/osx/cocoa/notebook.mm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/osx/cocoa/notebook.mm b/src/osx/cocoa/notebook.mm index 2f8eceb426..a561ca39ea 100644 --- a/src/osx/cocoa/notebook.mm +++ b/src/osx/cocoa/notebook.mm @@ -161,12 +161,6 @@ m_image = image; if(!m_image) return; - [[NSPasteboard generalPasteboard] - declareTypes:[NSArray arrayWithObject:NSTIFFPboardType] - owner:nil]; - [[NSPasteboard generalPasteboard] - setData:[m_image TIFFRepresentation] - forType:NSTIFFPboardType]; } @end // implementation WXCTabViewImageItem : NSTabViewItem