diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-07-19 14:52:12 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-07-19 14:52:12 +0000 |
commit | 7e86b330ecfbca7d910da2886dab4d26912b77eb (patch) | |
tree | 7e55b90d5bf36d40cae7dcc0de235d16b5966242 /sfx2 | |
parent | 4e9094821744b5dab138ef6825ebfee969c0a13c (diff) |
#96772#: wait for setting printer if printer is printing
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index b4f4006992fc..2e879c1af55e 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sfxbasemodel.cxx,v $ * - * $Revision: 1.35 $ + * $Revision: 1.36 $ * - * last change: $Author: as $ $Date: 2002-07-12 10:17:37 $ + * last change: $Author: mba $ $Date: 2002-07-19 15:52:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1164,6 +1164,11 @@ void SAL_CALL SfxBaseModel::setPrinter(const SEQUENCE< PROPERTYVALUE >& rPrinter } } + // #96772#: wait until printing is done + SfxPrinter* pDocPrinter = pViewSh->GetPrinter(); + while ( pDocPrinter->IsPrinting() ) + Application::Yield(); + // set new printer pViewSh->SetPrinter( pPrinter, nChangeFlags ); } |