keiron 2003/02/18 21:55:25 Modified: src/org/apache/fop/pdf FlateFilter.java PDFColor.java Log: fixed some minor errors Revision Changes Path 1.6 +7 -7 xml-fop/src/org/apache/fop/pdf/FlateFilter.java Index: FlateFilter.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/FlateFilter.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- FlateFilter.java 17 Sep 2002 09:20:57 -0000 1.5 +++ FlateFilter.java 19 Feb 2003 05:55:25 -0000 1.6 @@ -135,8 +135,8 @@ * @param predictor the predictor to use * @throws PDFFilterException if there is an error with the predictor */ - public void setPredictor(int predictor) throws PDFFilterException { - predictor = predictor; + public void setPredictor(int pred) throws PDFFilterException { + predictor = pred; } @@ -155,9 +155,9 @@ * @param colors the colors to use * @throws PDFFilterException if predictor is not PREDICTION_NONE */ - public void setColors(int colors) throws PDFFilterException { + public void setColors(int cols) throws PDFFilterException { if (predictor != PREDICTION_NONE) { - colors = colors; + colors = cols; } else { throw new PDFFilterException( "Prediction must not be PREDICTION_NONE in" @@ -205,9 +205,9 @@ * @param columns the number of columns to use for the filter * @throws PDFFilterException if predictor is not PREDICTION_NONE */ - public void setColumns(int columns) throws PDFFilterException { + public void setColumns(int cols) throws PDFFilterException { if (predictor != PREDICTION_NONE) { - columns = columns; + columns = cols; } else { throw new PDFFilterException( "Prediction must not be PREDICTION_NONE in" 1.16 +6 -6 xml-fop/src/org/apache/fop/pdf/PDFColor.java Index: PDFColor.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFColor.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- PDFColor.java 11 Jan 2003 19:38:52 -0000 1.15 +++ PDFColor.java 19 Feb 2003 05:55:25 -0000 1.16 @@ -314,9 +314,9 @@ this.green = 1.0 - this.green; this.blue = 1.0 - this.yellow; - this.red = (this.black / this.blackFactor) + this.red; - this.green = (this.black / this.blackFactor) + this.green; - this.blue = (this.black / this.blackFactor) + this.blue; + this.red = (this.black / PDFColor.blackFactor) + this.red; + this.green = (this.black / PDFColor.blackFactor) + this.green; + this.blue = (this.black / PDFColor.blackFactor) + this.blue; } @@ -381,7 +381,7 @@ tempDouble = this.yellow; } - this.black = (tempDouble / this.blackFactor); + this.black = (tempDouble / PDFColor.blackFactor); } @@ -402,7 +402,7 @@ tempDouble = this.blue; } - this.black = 1.0 - (tempDouble / this.blackFactor); + this.black = 1.0 - (tempDouble / PDFColor.blackFactor); } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]