Kaydet (Commit) 32e3ede9 authored tarafından Luboš Luňák's avatar Luboš Luňák

make sure newly created SwDocShell has font info up to date

http://lists.freedesktop.org/archives/libreoffice/2012-September/038163.html

Change-Id: I41a195180411800f72b8e251b5c19553a51cde44
üst 65e294e6
......@@ -778,6 +778,12 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
sal_Bool bOldModifyFlag = pDocSh->IsEnableSetModified();
if(bOldModifyFlag)
pDocSh->EnableSetModified( sal_False );
// HACK: SwDocShell has some cached font info, VCL informs about font updates,
// but loading of docs with embedded fonts happens after SwDocShell is created
// but before SwEditWin (which handles the VCL event) is created. So update
// manually.
if( pDocSh->GetDoc()->get( IDocumentSettingAccess::EMBED_FONTS ))
pDocSh->UpdateFontList();
OSL_ENSURE( pDocSh, "view without DocShell." );
SwWebDocShell* pWebDShell = PTR_CAST( SwWebDocShell, pDocSh );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment