summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-12-16 23:23:31 -0400
committerMichael Meeks <michael.meeks@collabora.com>2016-12-19 17:10:53 +0000
commitd8b22b3e6c1247b344c8cf446815f237e1d3ecd2 (patch)
tree7f80cdd74accc7ddded8e48ceefcd89a160d2d20 /sd
parentd2fd633f35ad70ab8adcd8a0b54d2e991a56e475 (diff)
lok: refill font list if empty
After preinit stage the font list is empty when creating documents. Change-Id: Ia6938d521626f4b4022f0f993e77c017e4932415 Reviewed-on: https://gerrit.libreoffice.org/32108 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index 672823758601..54a19a3b1e63 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -164,6 +164,7 @@ void DrawDocShell::UpdateFontList()
pRefDevice = GetPrinter(true);
else
pRefDevice = SD_MOD()->GetVirtualRefDevice();
+
mpFontList = new FontList( pRefDevice, nullptr, false );
SvxFontListItem aFontListItem( mpFontList, SID_ATTR_CHAR_FONTLIST );
PutItem( aFontListItem );