Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0056a47

Browse files
AasmaGuptaAASMA GUPTAtimhoffm
authored
Fix SVG rendering error in def update_background (#30490)
Check if saving before updating blitting background --------- Co-authored-by: AASMA GUPTA <[email protected]> Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 63e0329 commit 0056a47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,6 +2172,8 @@ def update_background(self, event):
21722172
# `release` can call a draw event even when `ignore` is True.
21732173
if not self.useblit:
21742174
return
2175+
if self.canvas.is_saving():
2176+
return # saving does not use blitting
21752177
# Make sure that widget artists don't get accidentally included in the
21762178
# background, by re-rendering the background if needed (and then
21772179
# re-re-rendering the canvas with the visible widget artists).

0 commit comments

Comments
 (0)