diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-02 18:26:41 +0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-10-30 17:00:50 +0000 |
commit | d7c2639e53a302f7e4f2a096331ae8bce3c444d6 (patch) | |
tree | 18bde19ac307af89d3d8e9fc1ec3ba55e67e9875 /vcl | |
parent | 88079a01c225c22c1187dd20efaaafa965f119ad (diff) |
We shouldn't call DrawTextLayout() without a context on iOS
Change-Id: I3e72909ca1aa9f97721d982f16624f496152ae2d
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salgdi.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index 7db6c7b00927..e78bb16e3f4b 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -404,6 +404,14 @@ bool AquaSalGraphics::GetGlyphBoundRect(const GlyphItem& rGlyph, tools::Rectangl void AquaSalGraphics::DrawTextLayout(const CommonSalLayout& rLayout) { +#ifdef IOS + if (!CheckContext()) + { + SAL_WARN("vcl.cg", "AquaSalGraphics::DrawTextLayout() without context"); + return; + } +#endif + const CoreTextStyle& rStyle = rLayout.getFontData(); const FontSelectPattern& rFontSelect = rStyle.maFontSelData; if (rFontSelect.mnHeight == 0) |