diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-05-03 18:27:12 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-03 18:27:12 +0000 |
commit | c3f62db21878c8adc60beae5f534218b417daa40 (patch) | |
tree | 5fbe4795a2bc08aa559051cdcadd362b48e23c9c /xfa/fxfa/cxfa_ffdoc.h | |
parent | c5c0eebe863bb4fad86b43f62fa81d89f07c9011 (diff) | |
download | pdfium-c3f62db21878c8adc60beae5f534218b417daa40.tar.xz |
[xfa] Verify we can get a font manager before setting up XFA
When setting up an XFA document we need to create a font manager. That
font manager requires the CFGAS_FontMgr to be provided, and ASSERTs to
that fact. It's possible for the CFGAS_FontMgr to be nullptr if we fail
to enumerate the system fonts.
This CL verifys we can get the needed manager and fails out of the XFA
OpenDoc method if we have no font manager.
Bug: chromium:835693
Change-Id: I806f265075dcc355e0a7aeb4b3ae8eb950aa5eee
Reviewed-on: https://pdfium-review.googlesource.com/32052
Commit-Queue: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdoc.h')
0 files changed, 0 insertions, 0 deletions