diff options
author | Timm Bäder <mail@baedert.org> | 2020-06-06 09:05:49 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-06-19 05:26:24 +0200 |
commit | a974c83423715cf6752194b0ab4f8a50a0bb9bb8 (patch) | |
tree | 0caabf522aa06cbb3fce3db5275dc58edbc02344 /gsk | |
parent | 5eb181281a23aeb1b6c2ae5849eecca2937774b8 (diff) | |
download | gtk+-a974c83423715cf6752194b0ab4f8a50a0bb9bb8.tar.gz |
gsktransform: Make next == NULL case explicit
This is handled with the is_identity() check as well but this way it's
much more obvious what's happening
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gsktransform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c index 2d94d7e7a5..79f230c0a1 100644 --- a/gsk/gsktransform.c +++ b/gsk/gsktransform.c @@ -1622,6 +1622,9 @@ gsk_transform_transform (GskTransform *next, if (other == NULL) return next; + if (next == NULL) + return gsk_transform_ref (other); + if (gsk_transform_is_identity (next)) { /* ref before unref to avoid catastrophe when other == next */ |