From: Christian Geisert Date: Sat, 18 Jan 2003 18:19:14 +0000 (+0000) Subject: Reduced the size of the PSRenderer output (removed redundant movetos) X-Git-Tag: fop-0_20_5rc2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5efafc54d54127310f8af5ea68ac8dade2606c70;p=xmlgraphics-fop.git Reduced the size of the PSRenderer output (removed redundant movetos) Submitted by: Arnd Bei�ner (see bug #16130) VS: ---------------------------------------------------------------------- git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195868 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 8e7c05ac8..e11e15181 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ ============================================================================== Done since 0.20.4 release +- Reduced the size of the PSRenderer output (removed redundant movetos) + Submitted by: Arnd Beißner (see bug #16130) - Fixed many (not all) problems with link hotspot positioning and made the default behavior to create a single hotspot over all words in each line (Karen Lease) diff --git a/src/org/apache/fop/render/ps/PSRenderer.java b/src/org/apache/fop/render/ps/PSRenderer.java index ba60533cd..0d9abeaba 100644 --- a/src/org/apache/fop/render/ps/PSRenderer.java +++ b/src/org/apache/fop/render/ps/PSRenderer.java @@ -334,7 +334,6 @@ public class PSRenderer extends AbstractRenderer { public void renderDisplaySpace(DisplaySpace space) { // write("% --- DisplaySpace size="+space.getSize()); this.currentYPosition -= space.getSize(); - movetoCurrPosition(); } /** @@ -352,7 +351,6 @@ public class PSRenderer extends AbstractRenderer { area.getObject().render(this); this.currentXPosition += area.getEffectiveWidth(); this.currentYPosition -= plOffset; - movetoCurrPosition(); } /** @@ -649,7 +647,6 @@ public class PSRenderer extends AbstractRenderer { } else { drawImageScaled(x, y, w, h, img, area.getFontState()); } - movetoCurrPosition(); } @@ -800,7 +797,6 @@ public class PSRenderer extends AbstractRenderer { int bl = this.currentYPosition; // method is identical to super method except next line - movetoCurrPosition(); String fontWeight = area.getFontState().getFontWeight(); //comment("% --- LineArea begin font-weight="+fontWeight);