Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5091c36

Browse filesBrowse files
authored
Merge pull request #26550 from meeseeksmachine/auto-backport-of-pr-26545-on-v3.8.x
Backport PR #26545 on branch v3.8.x (Fix size inferral when using cairocffi)
2 parents f95e35a + 163efb8 commit 5091c36
Copy full SHA for 5091c36

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_cairo.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_cairo.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def set_context(self, ctx):
9595
rect, *rest = ctx.copy_clip_rectangle_list()
9696
if rest:
9797
raise TypeError("Cannot infer surface size")
98-
size = rect.width, rect.height
98+
_, _, *size = rect
9999
ctx.restore()
100100
self.gc.ctx = ctx
101101
self.width, self.height = size

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.