< prev index next >

src/java.desktop/share/classes/sun/print/ServiceDialog.java

Print this page

        

*** 1630,1643 **** --- 1630,1646 ---- float wid = mediaSize.getX(units); float hgt = mediaSize.getY(units); float pax = lm; float pay = tm; + float par = rm; + float pab = bm; float paw = wid - lm - rm; float pah = hgt - tm - bm; if (paw <= 0f || pah <= 0f || pax < 0f || pay < 0f || + par <= 0f || pab <= 0f || pax < mpaMax.getX(units) || paw > mpaMax.getWidth(units) || pay < mpaMax.getY(units) || pah > mpaMax.getHeight(units)) { return null; } else { return new MediaPrintableArea(lm, tm, paw, pah, units);
< prev index next >