[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Tue Jun 20 09:29:56 UTC 2017
sw/source/core/txtnode/swfntcch.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit c17668a6dfeca6d1a34d86a11ae54b08f584d5b9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 20 10:28:51 2017 +0100
ofz: pSwFontCache my be null early on
Change-Id: I9325a02293a221fe63f8936da1e056dce42265e7
diff --git a/sw/source/core/txtnode/swfntcch.cxx b/sw/source/core/txtnode/swfntcch.cxx
index bc4ec4d5bf1c..f8788d241d2b 100644
--- a/sw/source/core/txtnode/swfntcch.cxx
+++ b/sw/source/core/txtnode/swfntcch.cxx
@@ -66,8 +66,10 @@ SwCacheObj *SwFontAccess::NewObj( )
SAL_DLLPUBLIC_EXPORT void FlushFontCache()
{
- pSwFontCache->Flush();
- pFntCache->Flush();
+ if (pSwFontCache)
+ pSwFontCache->Flush();
+ if (pFntCache)
+ pFntCache->Flush();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list