Print selected pages when "Selection" is chosen in MSW print dialog

Really print the selected pages and not the pages explicitly listed in the
"Pages" text entry field in the MSW native print dialog when "Selection" radio
button is checked.

Closes #17266, #17200.
This commit is contained in:
Troels Knakkergaard 2015-11-24 18:20:54 +01:00 committed by Vadim Zeitlin
parent 6d38fb81dc
commit ed4dbc024d

View File

@ -189,7 +189,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt
int minPageNum = minPage, maxPageNum = maxPage;
if ( !m_printDialogData.GetAllPages() )
if ( !(m_printDialogData.GetAllPages() || m_printDialogData.GetSelection()) )
{
minPageNum = m_printDialogData.GetFromPage();
maxPageNum = m_printDialogData.GetToPage();