summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2009-12-11 11:34:10 +0100
committerThomas Lange [tl] <tl@openoffice.org>2009-12-11 11:34:10 +0100
commit64e8661d76db6b02396d82b7d1f28dd3088a334f (patch)
tree3754776606ef98cd4d6becf7dba03e6b8cf4a018
parent0764f888f38304343c55ca2dcda097b01723b6a6 (diff)
#i106926# fixed hidden text in view when cancelling print to file
-rw-r--r--vcl/source/gdi/print3.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index e687fce01d1f..6778cfbc867e 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -436,7 +436,12 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
{
rtl::OUString aFile = queryFile( pController->getPrinter().get() );
if( ! aFile.getLength() )
+ {
+ GDIMetaFile aPageFile;
+ i_pController->setLastPage( sal_True );
+ i_pController->getFilteredPageFile( 0, aPageFile );
return;
+ }
pController->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LocalFileName" ) ),
makeAny( aFile ) );
}