Skip to content

Commit 851d6a0

Browse files
authored
Merge pull request matplotlib#30506 from meeseeksmachine/auto-backport-of-pr-30490-on-v3.10.x
Backport PR matplotlib#30490 on branch v3.10.x (Fix SVG rendering error in def update_background)
2 parents 692a9fb + e8eac49 commit 851d6a0

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
@@ -2157,6 +2157,8 @@ def update_background(self, event):
21572157
# `release` can call a draw event even when `ignore` is True.
21582158
if not self.useblit:
21592159
return
2160+
if self.canvas.is_saving():
2161+
return # saving does not use blitting
21602162
# Make sure that widget artists don't get accidentally included in the
21612163
# background, by re-rendering the background if needed (and then
21622164
# re-re-rendering the canvas with the visible widget artists).

0 commit comments

Comments
 (0)