summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-10-31 16:38:05 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-11-01 07:36:08 +0100
commite49c42d17f50c8b0cac9db08dedc375dd5aa8a98 (patch)
treea4b82795f226dedb243a3151f3db46cd1b765cbf /forms
parent98718dc375df991afe8136a48b9ec11051f58054 (diff)
oox smartart, vertical bracket list: fix node counter condition
The visible effect of this was that the 2nd level text nodes were missing from the layout result. The cause is that when it comes to counting nodes of a condition, we assumed that the current layout node is a presentation of a model node, but this is not necessarily true. Fix the problem doing a "first presentation child of", then a "presentation of" navigation in that case, which leads us to the correct model node, so counting its children works. (An alternative way of getting non-zero children would be a "presentation parent of" navigation, followed by a "presentation of" navigation, but that would lead us to the document root, so we would count the number of 1st level elements, not the correct 2nd level elements.) Change-Id: Iccebe0e2e56b7acb7fbe2c38a7c9ebb2abb309b9 Reviewed-on: https://gerrit.libreoffice.org/62703 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'forms')
0 files changed, 0 insertions, 0 deletions