View | Details | Raw Unified | Return to bug 49339
Collapse All | Expand All

(-)AbstractPSDocumentGraphics2D.java (-2 / +6 lines)
Lines 240-254 Link Here
240
        }
231
        }
241
232
242
        writePageHeader();
233
        writePageHeader();
234
        AffineTransform at;
243
        if ((this.viewportWidth != this.width
235
        if ((this.viewportWidth != this.width
244
                || this.viewportHeight != this.height)
236
                || this.viewportHeight != this.height)
245
                && (this.viewportWidth > 0) && (this.viewportHeight > 0)){
237
                && (this.viewportWidth > 0) && (this.viewportHeight > 0)){
246
            gen.concatMatrix(this.width / this.viewportWidth, 0,
238
            at = new AffineTransform(this.width / this.viewportWidth, 0,
247
                       0, -1 * (this.height / this.viewportHeight),
239
                       0, -1 * (this.height / this.viewportHeight),
248
                       0, this.height);
240
                       0, this.height);
249
        } else {
241
        } else {
250
            gen.concatMatrix(1, 0, 0, -1, 0, this.height);
242
            at = new AffineTransform(1, 0, 0, -1, 0, this.height);
251
        }
243
        }
244
        // Do not use concatMatrix, since it alters PSGenerator current state
245
        //gen.concatMatrix(at);
246
        gen.writeln(gen.formatMatrix(at) + " " + gen.mapCommand("concat"));
252
        gen.writeDSCComment(DSCConstants.END_PAGE_SETUP);
247
        gen.writeDSCComment(DSCConstants.END_PAGE_SETUP);
253
        this.pagePending = true;
248
        this.pagePending = true;
254
    }
249
    }

Return to bug 49339