diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-12 10:13:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-13 16:59:10 +0100 |
commit | 877235b01d6b87ae037c98f4da34f9fa3a48c714 (patch) | |
tree | 711ee6e485f093f914c549600108cf0418830b6a /sanitize-ubsan-blacklist | |
parent | 5f6e5c33e0911d8d19d2d8e934e7199e850870cd (diff) |
oox smartart: fix crash in pyra algorithm with a single child shape
Regression from commit 14a56533ff2c9c859d22cd3039ada75b99e94bc0
(SmartArt Pyramid: Now lays out shapes, 2018-07-10), the added pyramid
algorithm by first centering the topmost children, then decrementing the
horizontal postion of each additional shape, with the end goal of having
0 horizontal position of the last children.
This means that simply avoiding the division in the 1-child case leads
to correct results, because in this case the only child is also the last
child at the sane time.
(cherry picked from commit f2e04fe98e313cffa3f98d55eae641415142a431)
Change-Id: Ifd0027e9616b0909dbfde43e1555427b50de4dad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109223
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sanitize-ubsan-blacklist')
0 files changed, 0 insertions, 0 deletions