Kaydet (Commit) 4e1b526f authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

We shouldn't call DrawTextLayout() without a context on iOS

Change-Id: I3e72909ca1aa9f97721d982f16624f496152ae2d
üst baddd90d
......@@ -393,6 +393,14 @@ bool AquaSalGraphics::GetGlyphBoundRect(const GlyphItem& rGlyph, tools::Rectangl
void AquaSalGraphics::DrawTextLayout(const GenericSalLayout& rLayout)
{
#ifdef IOS
if (!CheckContext())
{
SAL_WARN("vcl.cg", "AquaSalGraphics::DrawTextLayout() without context");
return;
}
#endif
const CoreTextStyle& rStyle = *static_cast<const CoreTextStyle*>(&rLayout.GetFont());
const FontSelectPattern& rFontSelect = rStyle.GetFontSelectPattern();
if (rFontSelect.mnHeight == 0)
......
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