Commit d165b0a
committed
Fix for issue matplotlib#17769
1) On figure window (FigureFrameWx) close - remove figure manager from from Gcf class
previously Gcf.destroy was called with FigureFrameWx not FigureManagerWx instance so figure was not removed.
2) Destroy now done from FigureManagerWx.destroy() method to prevent multiple calls to the close event handler.
3) Remove unneeded wx mainloop yield calls that cause crash on windows form both FigureManagerWx.destroy and FigureFrameWx.Destroy1 parent 6ddad42 commit d165b0a
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
974 | | - | |
975 | | - | |
976 | | - | |
| 974 | + | |
977 | 975 | | |
978 | 976 | | |
979 | 977 | | |
| |||
992 | 990 | | |
993 | 991 | | |
994 | 992 | | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | 993 | | |
999 | 994 | | |
1000 | 995 | | |
| |||
1043 | 1038 | | |
1044 | 1039 | | |
1045 | 1040 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 1041 | + | |
1050 | 1042 | | |
1051 | 1043 | | |
1052 | 1044 | | |
| |||
0 commit comments