Small bugfix for the mpadata section, the number of pages is now calculated correctly

git-svn-id: https://svn.libreccm.org/ccm/trunk@2968 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-11-14 13:30:40 +00:00
parent 3ccb33927a
commit 00d473158b
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ public class MultiPartArticleDataXMLGenerator implements ExtraXMLGenerator {
index++; index++;
//The check for last index is necessary because we don't want to count a page break after //The check for last index is necessary because we don't want to count a page break after
//the last section //the last section
if (sections.getArticleSection().isPageBreak() if (sections.getArticleSection().isPageBreak()) {
&& index < (lastIndex)) {
numberOfPages++; numberOfPages++;
} }
} }