diff options
author | Luboš Luňák <l.lunak@centrum.cz> | 2021-02-24 12:45:32 +0000 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-03-01 15:56:25 +0100 |
commit | 9cd95b10936450b5d1d60319192c25c4aea05fa3 (patch) | |
tree | 12b889b1dd3aab1a870b9d3768618c27becaca07 /vcl/skia | |
parent | 6457ade879b90a6d84871cefe46e17e30e68920e (diff) |
it's enough to have one Skia font manager
Change-Id: I5dd29178e1a1ec1081820912f49fd387eb3f822b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111521
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia')
-rw-r--r-- | vcl/skia/win/gdiimpl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx index 8467b1d80765..6d47f34ed84d 100644 --- a/vcl/skia/win/gdiimpl.cxx +++ b/vcl/skia/win/gdiimpl.cxx @@ -159,6 +159,8 @@ sk_sp<SkTypeface> WinSkiaSalGraphicsImpl::createDirectWriteTypeface(const LOGFON } dwriteDone = true; } + if (!dwriteFontMgr) + return nullptr; IDWriteFont* font = nullptr; IDWriteFontFace* fontFace; IDWriteFontFamily* fontFamily; |