< prev index next >
src/java.desktop/share/classes/sun/print/ServiceDialog.java
Print this page
@@ -1292,12 +1292,20 @@
if (sc == null) {
sc = (SheetCollate)psCurrent.getDefaultAttributeValue(scCategory);
if (sc == null) {
sc = SheetCollate.UNCOLLATED;
}
+ if (sc != null &&
+ !psCurrent.isAttributeValueSupported(sc, docFlavor, asCurrent)) {
+ scSupported = false;
}
- cbCollate.setSelected(sc == SheetCollate.COLLATED);
+ } else {
+ if (!psCurrent.isAttributeValueSupported(sc, docFlavor, asCurrent)) {
+ scSupported = false;
+ }
+ }
+ cbCollate.setSelected(sc == SheetCollate.COLLATED && scSupported);
updateCollateCB();
}
}
< prev index next >