aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/afp/modca/ImageObject.java
diff options
context:
space:
mode:
authorPeter Hancock <phancock@apache.org>2012-04-12 14:17:05 +0000
committerPeter Hancock <phancock@apache.org>2012-04-12 14:17:05 +0000
commit37ff704262a892e22100b9e56c40228c5bcf562d (patch)
treeb4ef2cee049b55b39f02366dc2a3b66b2745a50b /src/java/org/apache/fop/afp/modca/ImageObject.java
parent03f65a7b8b6d294cff0a6888b466e72da83fead2 (diff)
downloadxmlgraphics-fop-37ff704262a892e22100b9e56c40228c5bcf562d.tar.gz
xmlgraphics-fop-37ff704262a892e22100b9e56c40228c5bcf562d.zip
Bugzilla#49893: A global setting to wrap F11 images in page segments.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1325277 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/afp/modca/ImageObject.java')
-rw-r--r--src/java/org/apache/fop/afp/modca/ImageObject.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/afp/modca/ImageObject.java b/src/java/org/apache/fop/afp/modca/ImageObject.java
index c6cfa3808..adb56e626 100644
--- a/src/java/org/apache/fop/afp/modca/ImageObject.java
+++ b/src/java/org/apache/fop/afp/modca/ImageObject.java
@@ -75,10 +75,11 @@ public class ImageObject extends AbstractDataObject {
int dataHeightRes = imageObjectInfo.getDataWidthRes();
ImageDataDescriptor imageDataDescriptor
= factory.createImageDataDescriptor(dataWidth, dataHeight, dataWidthRes, dataHeightRes);
- if (imageObjectInfo.getBitsPerPixel() == 1) {
- imageDataDescriptor.setFunctionSet(ImageDataDescriptor.FUNCTION_SET_FS10);
- } else if (MimeConstants.MIME_AFP_IOCA_FS45.equals(imageObjectInfo.getMimeType())) {
+
+ if (MimeConstants.MIME_AFP_IOCA_FS45.equals(imageObjectInfo.getMimeType())) {
imageDataDescriptor.setFunctionSet(ImageDataDescriptor.FUNCTION_SET_FS45);
+ } else if (imageObjectInfo.getBitsPerPixel() == 1) {
+ imageDataDescriptor.setFunctionSet(ImageDataDescriptor.FUNCTION_SET_FS10);
}
getObjectEnvironmentGroup().setDataDescriptor(imageDataDescriptor);
getObjectEnvironmentGroup().setMapImageObject(