Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-09-12 17:02:52 -0400
committerDonald Dunne2016-09-14 14:01:53 -0400
commita8cb7a9a8d25f9dd43cfa65716b424559a81d81c (patch)
treec425eff129b06f5c58132bc35a1db972a7d92f4a
parent0841b69fa26658c29398c6031c0861a22d38be71 (diff)
downloadorg.eclipse.osee-a8cb7a9a8d25f9dd43cfa65716b424559a81d81c.tar.gz
org.eclipse.osee-a8cb7a9a8d25f9dd43cfa65716b424559a81d81c.tar.xz
org.eclipse.osee-a8cb7a9a8d25f9dd43cfa65716b424559a81d81c.zip
bug[ats_ATS314223]: Fix Page Type Attr not working for Landscape
Change-Id: Ided257de741d47cf380e7dd7180cc65150d156f6 Signed-off-by: Morgan E. Cook <Morgan.e.cook@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/DataRightBuilder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/DataRightBuilder.java b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/DataRightBuilder.java
index 3d2eccda1b..006e4ea4a5 100644
--- a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/DataRightBuilder.java
+++ b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/DataRightBuilder.java
@@ -24,6 +24,7 @@ import org.eclipse.osee.define.report.api.DataRightEntry;
import org.eclipse.osee.define.report.api.DataRightId;
import org.eclipse.osee.define.report.api.DataRightInput;
import org.eclipse.osee.define.report.api.DataRightResult;
+import org.eclipse.osee.define.report.api.PageOrientation;
import org.eclipse.osee.framework.core.data.IArtifactToken;
import org.eclipse.osee.framework.core.data.TokenFactory;
import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
@@ -81,6 +82,7 @@ public class DataRightBuilder {
while (iterator.hasNext()) {
DataRightEntry currentArtifact = iterator.next();
String classification = currentArtifact.getClassification();
+ PageOrientation orientation = currentArtifact.getOrientation();
boolean isSetDataRightFooter = false;
if (previousArtifact == null) {
@@ -91,7 +93,8 @@ public class DataRightBuilder {
isSetDataRightFooter = true;
} else {
DataRightAnchor previousArtAnchor = getAnchor(previousArtifact.getGuid(), anchors);
- if (previousArtAnchor != null) {
+ PageOrientation prevOrientation = previousArtifact.getOrientation();
+ if (previousArtAnchor != null && orientation.equals(prevOrientation)) {
previousArtAnchor.setContinuous(true);
}
}

Back to the top