diff options
author | Henry Castro <hcastro@collabora.com> | 2016-05-24 17:24:16 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2016-05-25 19:42:09 -0400 |
commit | 260f3ff257d7839119c8221397d18a516afd8799 (patch) | |
tree | 49f3b07034590fa3f7d886f21ab791915310f562 /vcl | |
parent | 69f9e2a7c807e7e572919152c3db42083322734e (diff) |
lok: reset the font list when there are no items
In the pre-init stage the devices were initialized with no
font list, but later the font list is updated. So those devices
were not updated.
Change-Id: I157d4c7079f9b1252916eb92b512aadb8e77329f
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/font.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index bce865190815..4eb02f9312aa 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -92,9 +92,19 @@ int OutputDevice::GetDevFontCount() const if( !mpGetDevFontList ) { if (!mpFontCollection) + { return 0; + } mpGetDevFontList = mpFontCollection->GetDevFontList(); + + if (!mpGetDevFontList->Count()) + { + delete mpGetDevFontList; + mpGetDevFontList = nullptr; + + return 0; + } } return mpGetDevFontList->Count(); } |