summaryrefslogtreecommitdiff
path: root/sw/source/core/view/printdata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/view/printdata.cxx')
-rw-r--r--sw/source/core/view/printdata.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index 48a6b148bd1d..893907fd1773 100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -185,6 +185,7 @@ void SwRenderData::MakeSwPrtOptions(
//////////////////////////////////////////////////////////////////////
SwPrintUIOptions::SwPrintUIOptions(
+ sal_uInt16 nCurrentPage,
bool bWeb,
bool bSwSrcView,
bool bHasSelection,
@@ -335,7 +336,7 @@ SwPrintUIOptions::SwPrintUIOptions(
m_aUIProperties[nIdx++].Value = getEditControlOpt( rtl::OUString(),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PageRange:Edit" ) ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PageRange" ) ),
- rtl::OUString(),
+ rtl::OUString::valueOf( sal_Int32( nCurrentPage ) ) /* set text box to current page number */,
aPageRangeOpt
);
// print content selection