summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2011-03-07 18:21:00 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2011-03-07 18:21:00 +0100
commit64ecad989408b3ff9a2a817f9ef94ec5c6770567 (patch)
treeb986cd1199f31871832fdfd131e53868fd429c58 /sfx2
parentvcl119: rebase to DEV300_m101 (diff)
downloadcore-64ecad989408b3ff9a2a817f9ef94ec5c6770567.tar.gz
core-64ecad989408b3ff9a2a817f9ef94ec5c6770567.zip
vcl120: #i114306# enforce setting a new document printer
Diffstat (limited to 'sfx2')
-rwxr-xr-xsfx2/source/view/viewprn.cxx7
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() )