summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/print3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/print3.cxx')
-rw-r--r--vcl/source/gdi/print3.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index dc2fc5e74d35..1ebab3b48177 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -424,8 +424,7 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
aBuf.append( "1" );
if( nPages > 1 )
{
- aBuf.append( "-" );
- aBuf.append( nPages );
+ aBuf.append( "-" + OUString::number( nPages ) );
}
xController->setValue("PageRange", css::uno::Any(aBuf.makeStringAndClear()));
}