summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-06 16:07:10 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-06 16:40:02 +0200
commit4fa014099e99d91088f55b15273117fd0fc26679 (patch)
tree8bc0bcef2409737dd8dcfbb2f559e8967dadff6d
parent8cbe2fa1535e475ab48b450a61fc471c3522fce4 (diff)
tdf#111492 Numbering: entry B.1 is exported as 2.1
Look for the current number format, not always for the first one Change-Id: Ic11bcb420873bc0a5a644a05623bb801a1579dd7 Reviewed-on: https://gerrit.libreoffice.org/42000 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--filter/source/xslt/odf2xhtml/export/xhtml/body.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 40e776024e3a..6f6b4e1ccf89 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -1337,7 +1337,7 @@
<xsl:with-param name="currentoutlineLevel" select="$iOutlineLevel"/>
</xsl:call-template>
</xsl:with-param>
- <xsl:with-param name="numberFormat" select="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = ($outlineLevel)]/@style:num-format"/>
+ <xsl:with-param name="numberFormat" select="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = ($iOutlineLevel)]/@style:num-format"/>
</xsl:call-template>
</xsl:if>
<xsl:choose>
@@ -1367,7 +1367,7 @@
<xsl:with-param name="currentoutlineLevel" select="$iOutlineLevel"/>
</xsl:call-template>
</xsl:with-param>
- <xsl:with-param name="numberFormat" select="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = $outlineLevel]/@style:num-format"/>
+ <xsl:with-param name="numberFormat" select="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = $iOutlineLevel]/@style:num-format"/>
<xsl:with-param name="last" select="true()"/>
</xsl:call-template>
</xsl:otherwise>