From ed4dbc024d5ea7b9106611f3dbf990048684c2a4 Mon Sep 17 00:00:00 2001 From: Troels Knakkergaard Date: Tue, 24 Nov 2015 18:20:54 +0100 Subject: [PATCH] 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. --- src/msw/printwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index 8c5b1b1c35..6d1e9c40c7 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -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();