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:
parent
6d38fb81dc
commit
ed4dbc024d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user