aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/PageNumberCitation.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-02-01 23:51:39 +0000
committerKeiron Liddle <keiron@apache.org>2001-02-01 23:51:39 +0000
commit717437417a1ad3770d79732355b46f7183b3ca10 (patch)
tree258b381df0a731c87e80439524f0cefa7ecb08b9 /src/org/apache/fop/fo/flow/PageNumberCitation.java
parentb8a2a029d91f33b665a1cc1e7ed017d8626910e4 (diff)
downloadxmlgraphics-fop-717437417a1ad3770d79732355b46f7183b3ca10.tar.gz
xmlgraphics-fop-717437417a1ad3770d79732355b46f7183b3ca10.zip
simplified block area
moved adding text, leader out so that a line area is obtained then the stuff is added to it git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194012 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow/PageNumberCitation.java')
-rw-r--r--src/org/apache/fop/fo/flow/PageNumberCitation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/flow/PageNumberCitation.java b/src/org/apache/fop/fo/flow/PageNumberCitation.java
index 817a647e1..86acb8923 100644
--- a/src/org/apache/fop/fo/flow/PageNumberCitation.java
+++ b/src/org/apache/fop/fo/flow/PageNumberCitation.java
@@ -203,13 +203,16 @@ public class PageNumberCitation extends FObj {
pageNumber = idReferences.getPageNumber(refId);
if (pageNumber != null) { // if we already know the page number
- this.marker = ((BlockArea) area).addText(fs, red, green, blue,
+ this.marker = FOText.addText((BlockArea) area, fs, red, green, blue,
wrapOption, null, whiteSpaceCollapse,
pageNumber.toCharArray(), 0, pageNumber.length(),
ts);
} else { // add pageNumberCitation to area to be resolved during rendering
BlockArea blockArea = (BlockArea)area;
LineArea la = blockArea.getCurrentLineArea();
+ if(la == null) {
+ return new Status(Status.AREA_FULL_NONE);
+ }
la.changeFont(fs);
la.changeColor(red, green, blue);
la.changeWrapOption(wrapOption);