Kaydet (Commit) b7fa07b0 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: WinSalGraphics: don't crash if there's no font

The CairoTextRender::GetTextLayout() also handles non-existing fonts
gracefully, so adapt this for consistency.

Change-Id: I89cd9ad6aa64e3b320da83bd4290e4c0b57d08bc
üst 9857c639
...@@ -2711,7 +2711,9 @@ void GraphiteWinLayout::Simplify( bool is_base ) ...@@ -2711,7 +2711,9 @@ void GraphiteWinLayout::Simplify( bool is_base )
SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel ) SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel )
{ {
DBG_ASSERT( mpWinFontEntry[nFallbackLevel], "WinSalGraphics mpWinFontEntry==NULL"); if (!mpWinFontEntry[nFallbackLevel]) return nullptr;
assert(mpWinFontData[nFallbackLevel]);
WinLayout* pWinLayout = NULL; WinLayout* pWinLayout = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment