diff options
author | Thorsten Behrens <thb@openoffice.org> | 2001-08-17 12:48:26 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2001-08-17 12:48:26 +0000 |
commit | 6bc211069d05e531cc564edebc9720aee2404d88 (patch) | |
tree | 4d2f4818940331065b8b417ce6e801108724d399 /svx | |
parent | 5423845f3dae18c00a92ee37e3afddb8f0d0b9ef (diff) |
#91118# Preventing update in OnDocumentPrinterChanged()
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoole2.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 1c34dedb5274..a4874a997d48 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdoole2.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: ka $ $Date: 2001-08-17 12:00:07 $ + * last change: $Author: thb $ $Date: 2001-08-17 13:48:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1062,11 +1062,17 @@ const SvInPlaceObjectRef& SdrOle2Obj::GetObjRef() const { if(!bInDestruction) { + // prevent SetModified (don't want no update here) + sal_Bool bWasEnabled = (*ppObjRef)->IsEnableSetModified(); + if ( bWasEnabled ) + (*ppObjRef)->EnableSetModified( sal_False ); + // Kein RefDevice oder RefDevice kein Printer - BOOL bModified = (*ppObjRef)->IsModified(); Printer* pPrinter = (Printer*) pModel->GetRefDevice(); (*ppObjRef)->OnDocumentPrinterChanged( pPrinter ); - (*ppObjRef)->SetModified( bModified ); + + // reset state + (*ppObjRef)->EnableSetModified( bWasEnabled ); } } } |