mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 06:08:02 +02:00
[cairo-gstate] Allow angle==0 whilst rotating.
Cut'n'paste error whilst copying the NaN check from _cairo_gstate_scale() flagged the no rotation case as an error.
This commit is contained in:
parent
ce44cd6523
commit
0c02b998f9
1 changed files with 4 additions and 1 deletions
|
|
@ -663,7 +663,10 @@ _cairo_gstate_rotate (cairo_gstate_t *gstate, double angle)
|
|||
{
|
||||
cairo_matrix_t tmp;
|
||||
|
||||
if (! (angle * angle > 0.)) /* check for NaNs */
|
||||
if (angle == 0.)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (! (angle * angle >= 0.)) /* check for NaNs */
|
||||
return _cairo_error (CAIRO_STATUS_INVALID_MATRIX);
|
||||
|
||||
_cairo_gstate_unset_scaled_font (gstate);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue