diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2009-11-19 19:31:39 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2009-11-19 19:31:39 +0100 |
commit | 6ee2de4b7877c3b1bb4cb4ecb6e2ef2dd353c68b (patch) | |
tree | f569dd7744f6fe28d0a5c20f729a18eaf4aeffe9 | |
parent | 5f60cbfe81d0e24bcf8f0151fd41bf077fcdacb2 (diff) |
printerpullpages: #i106879# use document printer as default
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index e0f2df77dc39..c5ca117a3854 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -647,7 +647,8 @@ void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >& rPro makeAny( rtl::OUString( pObjShell->GetTitle(0) ) ) );
// FIXME: job setup
- JobSetup aJobSetup = GetJobSetup();
+ SfxPrinter* pDocPrt = GetPrinter(FALSE);
+ JobSetup aJobSetup = pDocPrt ? pDocPrt->GetJobSetup() : GetJobSetup();
if( bIsDirect )
aJobSetup.SetValue( String( RTL_CONSTASCII_USTRINGPARAM( "IsQuickJob" ) ),
String( RTL_CONSTASCII_USTRINGPARAM( "true" ) ) );
|