8000 Merge pull request #25421 from newville/main · matplotlib/matplotlib@f21c545 · GitHub
[go: up one dir, main page]

Skip to content

Commit f21c545

Browse files
authored
Merge pull request #25421 from newville/main
wx backend should flush the clipboard before closing it
2 parents b636e9e + cda21cf commit f21c545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ def Copy_to_Clipboard(self, event=None):
537537
open_success = wx.TheClipboard.Open()
538538
if open_success:
539539
wx.TheClipboard.SetData(bmp_obj)
540-
wx.TheClipboard.Close()
541540
wx.TheClipboard.Flush()
541+
wx.TheClipboard.Close()
542542

543543
def draw_idle(self):
544544
# docstring inherited

0 commit comments

Comments
 (0)
0