From 00d473158bbc41a6b586488326bf9124d1948657 Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 14 Nov 2014 13:30:40 +0000 Subject: [PATCH] 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 --- .../cms/contenttypes/MultiPartArticleDataXMLGenerator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleDataXMLGenerator.java b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleDataXMLGenerator.java index 0df5334b3..ba879bfcd 100644 --- a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleDataXMLGenerator.java +++ b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleDataXMLGenerator.java @@ -70,8 +70,7 @@ public class MultiPartArticleDataXMLGenerator implements ExtraXMLGenerator { index++; //The check for last index is necessary because we don't want to count a page break after //the last section - if (sections.getArticleSection().isPageBreak() - && index < (lastIndex)) { + if (sections.getArticleSection().isPageBreak()) { numberOfPages++; } }