diff options
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index f1ae5b009231..e83ff19c3186 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -581,6 +581,10 @@ bool SfxObjectShell::ImportFromGeneratedStream_Impl( bool SfxObjectShell::DoLoad( SfxMedium *pMed ) { ModifyBlocker_Impl aBlock( this ); + struct FontLockGuard { + FontLockGuard() { Application::LockFontUpdates(true); } + ~FontLockGuard() { Application::LockFontUpdates(false); } + } aFontLockGuard; pMedium = pMed; pMedium->CanDisposeStorage_Impl( true ); |