diff options
-rw-r--r-- | sw/source/ui/dbui/mmresultdialogs.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index f107758feda0..18af8ebd1752 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -22,6 +22,7 @@ #include <mmconfigitem.hxx> #include <mailconfigpage.hxx> #include "mmgreetingspage.hxx" +#include <printdata.hxx> #include <swmessdialog.hxx> #include <cmdid.h> #include <swtypes.hxx> @@ -750,7 +751,8 @@ IMPL_LINK_NOARG(SwMMResultPrintDialog, PrintHdl_Impl, weld::Button&, void) // If we skip autoinserted blanks, then the page numbers used in the print range string // refer to the non-blank pages as they appear in the document (see tdf#89708). - const bool bIgnoreEmptyPages = !officecfg::Office::Writer::Print::EmptyPages::get(); + const bool bIgnoreEmptyPages = + !pTargetView->GetDocShell()->GetDoc()->getIDocumentDeviceAccess().getPrintData().IsPrintEmptyPages(); const int nStartPage = documentStartPageNumber(xConfigItem.get(), nBegin, bIgnoreEmptyPages); const int nEndPage = documentEndPageNumber(xConfigItem.get(), nEnd - 1, bIgnoreEmptyPages); |