Resolves: tdf#143615 clamp relative times to 1.0
commite1db8c27875eac73b1e619e4a23ecdb7a9924b61
authorThorsten Behrens <thorsten.behrens@allotropia.de>
Thu, 14 Apr 2022 10:01:50 +0000 (14 12:01 +0200)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Thu, 14 Apr 2022 17:29:03 +0000 (14 19:29 +0200)
tree63bfb886822d83f9e4be5d5972d13bd69402ee2d
parentaf4407649d2c8a2ea59487d5fc1f8cc742ddd0b2
Resolves: tdf#143615 clamp relative times to 1.0

User input permits zero-length animations, so whenever we calculate
relative position within the animation time frame, the case
mnMinSimpleDuration == 0.0 means: we're already at the end of the
animation, i.e. set relative time to 1.0

Change-Id: I0e8c1e29f47bd9fa16f04115cf52d3a176e13fb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133005
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
slideshow/source/engine/activities/simplecontinuousactivitybase.cxx