diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-03-07 18:21:00 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-03-07 18:21:00 +0100 |
commit | 64ecad989408b3ff9a2a817f9ef94ec5c6770567 (patch) | |
tree | b986cd1199f31871832fdfd131e53868fd429c58 /sfx2 | |
parent | c774d769487aa276bc12ce52daf124857ba99c95 (diff) |
vcl120: #i114306# enforce setting a new document printer
Diffstat (limited to 'sfx2')
-rwxr-xr-x | sfx2/source/view/viewprn.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index b125efc87267..50fe40dd9e0d 100755 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -349,7 +349,12 @@ void SfxPrinterController::jobFinished( com::sun::star::view::PrintableState nSt if( bCopyJobSetup && mpViewShell ) { - SfxPrinter* pDocPrt = mpViewShell->GetPrinter(sal_False); + // #i114306# + // Note: this possibly creates a printer that gets immediately replaced + // by a new one. The reason for this is that otherwise we would not get + // the printer's SfxItemSet here to copy. Awkward, but at the moment there is no + // other way here to get the item set. + SfxPrinter* pDocPrt = mpViewShell->GetPrinter(sal_True); if( pDocPrt ) { if( pDocPrt->GetName() == getPrinter()->GetName() ) |