summaryrefslogtreecommitdiff
path: root/canvas/source/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-01-12 10:13:14 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-01-12 15:40:43 +0100
commitf2e04fe98e313cffa3f98d55eae641415142a431 (patch)
treeb8798799041566249200f3d30acf9bcd58f7ed92 /canvas/source/vcl
parent5360a780ed67b7625bbc0216218a16f58983c234 (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. Change-Id: Ifd0027e9616b0909dbfde43e1555427b50de4dad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109161 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'canvas/source/vcl')
0 files changed, 0 insertions, 0 deletions