From 7e86b330ecfbca7d910da2886dab4d26912b77eb Mon Sep 17 00:00:00 2001 From: Mathias Bauer <mba@openoffice.org> Date: Fri, 19 Jul 2002 14:52:12 +0000 Subject: #96772#: wait for setting printer if printer is printing --- sfx2/source/doc/sfxbasemodel.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sfx2') 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 ); } -- cgit