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-94f89814c4dfmaster
parent
3ccb33927a
commit
00d473158b
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue