diff options
author | David Tardon <dtardon@redhat.com> | 2016-11-02 19:29:23 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-11-02 19:33:33 +0100 |
commit | 6f3642986f819430c16c8c804ac62aab47778245 (patch) | |
tree | de8cc44eedb98cfec2c792549da59e28d3641d8f /filter | |
parent | rhbz#1390776 check only Row elements when computing row index (diff) | |
download | core-6f3642986f819430c16c8c804ac62aab47778245.tar.gz core-6f3642986f819430c16c8c804ac62aab47778245.zip |
check only Row elements when computing row index
Change-Id: I3bd1b0749f8889cbd1d92a0edfa84d754e888f03
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl b/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl index 41b37e951970..2916dc17e86f 100644 --- a/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl +++ b/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl @@ -5255,15 +5255,15 @@ <xsl:choose> <xsl:when test="@ss:Index"><xsl:value-of select="@ss:Index -1 + $simple-span-value"/></xsl:when> <xsl:otherwise> - <xsl:variable name="recent-index" select="preceding-sibling::*[@ss:Index][last()]"></xsl:variable> + <xsl:variable name="recent-index" select="preceding-sibling::ss:Row[@ss:Index][last()]"></xsl:variable> <xsl:choose> <xsl:when test="$recent-index"> - <xsl:variable name="nodes-up-to-current" select="set:intersection(preceding-sibling::*, $recent-index/following-sibling::*)"></xsl:variable> + <xsl:variable name="nodes-up-to-current" select="set:intersection(preceding-sibling::ss:Row, $recent-index/following-sibling::ss:Row)"></xsl:variable> <xsl:variable name="allSpans" select="$nodes-up-to-current/@ss:Span"/> <xsl:value-of select="$recent-index/@ss:Index + count($nodes-up-to-current) + sum($allSpans) + count($allSpans)"/> </xsl:when> <xsl:otherwise> - <xsl:variable name="allSpans" select="preceding-sibling::*/@ss:Span"/> + <xsl:variable name="allSpans" select="preceding-sibling::ss:Row/@ss:Span"/> <xsl:value-of select="position() + sum($allSpans) + count($allSpans)"/> </xsl:otherwise> </xsl:choose> |