< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp
Print this page
*** 777,787 ****
// Windows pops up an error dialog in such a case which isn't very
// forthcoming about the exact problem.
// So if we detect this fix up such a problem here.
if (pd.nMinPage > pd.nFromPage) pd.nMinPage = pd.nFromPage;
if (pd.nMaxPage < pd.nToPage) pd.nMaxPage = pd.nToPage;
! if (pd.nFromPage > pd.nMinPage || pd.nToPage < pd.nMaxPage) {
pd.Flags |= PD_PAGENUMS;
}
if (env->CallBooleanMethod(printCtrl,
AwtPrintControl::getDestID)) {
--- 777,787 ----
// Windows pops up an error dialog in such a case which isn't very
// forthcoming about the exact problem.
// So if we detect this fix up such a problem here.
if (pd.nMinPage > pd.nFromPage) pd.nMinPage = pd.nFromPage;
if (pd.nMaxPage < pd.nToPage) pd.nMaxPage = pd.nToPage;
! if (pd.nToPage > pd.nFromPage && (pd.nFromPage > pd.nMinPage || pd.nToPage < pd.nMaxPage)) {
pd.Flags |= PD_PAGENUMS;
}
if (env->CallBooleanMethod(printCtrl,
AwtPrintControl::getDestID)) {
< prev index next >