Browse Source

Rename parameter to match the type.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198213 13f79535-47bb-0310-9956-ffa450edef68
tags/Root_Temp_KnuthStylePageBreaking
Jeremias Maerki 19 years ago
parent
commit
45972865de
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      src/java/org/apache/fop/render/pdf/PDFRenderer.java

+ 7
- 7
src/java/org/apache/fop/render/pdf/PDFRenderer.java View File

@@ -524,19 +524,19 @@ public class PDFRenderer extends PrintRenderer {
* This draws the background and border traits for an area given
* the position.
*
* @param block the area to get the traits from
* @param area the area to get the traits from
* @param startx the start x position
* @param starty the start y position
* @param width the width of the area
* @param height the height of the area
*/
protected void drawBackAndBorders(Area block,
protected void drawBackAndBorders(Area area,
float startx, float starty,
float width, float height) {
// draw background then border

Trait.Background back;
back = (Trait.Background)block.getTrait(Trait.BACKGROUND);
back = (Trait.Background)area.getTrait(Trait.BACKGROUND);
if (back != null) {
endTextObject();

@@ -565,7 +565,7 @@ public class PDFRenderer extends PrintRenderer {
}
}

BorderProps bps = (BorderProps)block.getTrait(Trait.BORDER_BEFORE);
BorderProps bps = (BorderProps)area.getTrait(Trait.BORDER_BEFORE);
if (bps != null) {
endTextObject();

@@ -578,7 +578,7 @@ public class PDFRenderer extends PrintRenderer {
currentStream.add(startx + width + " " + y1 + " l\n");
currentStream.add("S\n");
}
bps = (BorderProps)block.getTrait(Trait.BORDER_AFTER);
bps = (BorderProps)area.getTrait(Trait.BORDER_AFTER);
if (bps != null) {
endTextObject();

@@ -591,7 +591,7 @@ public class PDFRenderer extends PrintRenderer {
currentStream.add((startx + width) + " " + (y1 + height) + " l\n");
currentStream.add("S\n");
}
bps = (BorderProps)block.getTrait(Trait.BORDER_START);
bps = (BorderProps)area.getTrait(Trait.BORDER_START);
if (bps != null) {
endTextObject();

@@ -604,7 +604,7 @@ public class PDFRenderer extends PrintRenderer {
currentStream.add(x1 + " " + (starty + height) + " l\n");
currentStream.add("S\n");
}
bps = (BorderProps)block.getTrait(Trait.BORDER_END);
bps = (BorderProps)area.getTrait(Trait.BORDER_END);
if (bps != null) {
endTextObject();


Loading…
Cancel
Save