summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/fxge/skia/fx_skia_device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 222c8466e0..55fe580086 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -896,6 +896,8 @@ FX_BOOL CFX_SkiaDeviceDriver::DrawDeviceText(int nChars,
const CFX_Matrix* pObject2Device,
FX_FLOAT font_size,
uint32_t color) {
+ if (!pCache)
+ pCache = CFX_GEModule::Get()->GetFontCache();
if (m_pCache->DrawText(nChars, pCharPos, pFont, pCache, pObject2Device,
font_size, color, this)) {
return TRUE;