mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
Remove redundant check.
Spotted by David Kastrup <dak@gnu.org>. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
5ac7b3652d
commit
339fe9a768
1 changed files with 0 additions and 4 deletions
|
|
@ -504,13 +504,9 @@ cairo_surface_create_similar (cairo_surface_t *other,
|
|||
return _cairo_surface_create_in_error (CAIRO_STATUS_SURFACE_FINISHED);
|
||||
if (unlikely (width < 0 || height < 0))
|
||||
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE);
|
||||
|
||||
if (unlikely (! CAIRO_CONTENT_VALID (content)))
|
||||
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_CONTENT);
|
||||
|
||||
if (unlikely (other->status))
|
||||
return _cairo_surface_create_in_error (other->status);
|
||||
|
||||
/* We inherit the device scale, so create a larger surface */
|
||||
width = width * other->device_transform.xx;
|
||||
height = height * other->device_transform.yy;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue