Closed Bug 577631 Opened 14 years ago Closed 14 years ago

gfxXlibSurface's CreatePixmap can fail to create zero-sized surfaces

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

References

Details

Attachments

(1 file)

Attached patch fix (deleted) — Splinter Review
CreatePixmap gets a fatal error if we try to create a zero width or height surface. But sometimes we do try to create an empty surface ... in cairo_xlib_surface.c we just use a minimum width/height of 1 to avoid this error. So we need to do the same in CreatePixmap.
Attachment #456549 - Flags: review?(jmuizelaar)
Attachment #456549 - Flags: review?(jmuizelaar) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: