< prev index next >
src/java.desktop/share/classes/sun/print/PSPrinterJob.java
Print this page
@@ -1931,10 +1931,18 @@
* The path is provided in current user space.
*/
protected void deviceFill(PathIterator pathIter, Color color,
AffineTransform tx, Shape clip) {
+ if (Double.isNaN(tx.getScaleX()) ||
+ Double.isNaN(tx.getScaleY()) ||
+ Double.isNaN(tx.getShearX()) ||
+ Double.isNaN(tx.getShearY()) ||
+ Double.isNaN(tx.getTranslateX()) ||
+ Double.isNaN(tx.getTranslateY())) {
+ return;
+ }
setTransform(tx);
setClip(clip);
setColor(color);
convertToPSPath(pathIter);
/* Specify the path to fill as the clip, this ensures that only
< prev index next >