X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libview%2Fev-transition-animation.c;h=7e33023e220734c35193a876484c709c889e432d;hb=cc46f6d515d9639f4fbca00118fb2c99c2a3bcd7;hp=efcb509e24108af97fc38de2331171593d057ea5;hpb=354a8dd987f37bfe3c5bbafcb6047f34b6486aaa;p=evince.git diff --git a/libview/ev-transition-animation.c b/libview/ev-transition-animation.c index efcb509e..7e33023e 100644 --- a/libview/ev-transition-animation.c +++ b/libview/ev-transition-animation.c @@ -635,6 +635,9 @@ ev_transition_animation_set_origin_surface (EvTransitionAnimation *animation, priv = EV_TRANSITION_ANIMATION_GET_PRIVATE (animation); + if (priv->origin_surface == origin_surface) + return; + surface = cairo_surface_reference (origin_surface); if (priv->origin_surface) @@ -658,6 +661,9 @@ ev_transition_animation_set_dest_surface (EvTransitionAnimation *animation, priv = EV_TRANSITION_ANIMATION_GET_PRIVATE (animation); + if (priv->dest_surface == dest_surface) + return; + surface = cairo_surface_reference (dest_surface); if (priv->dest_surface)