diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-01 11:54:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-01 11:57:18 +0300 |
commit | 3972a2fecc63d2d01aa902359b02ef9929d51f62 (patch) | |
tree | 47711949f9f6caf746e38f420d8d5c4f9d11be0c /vcl | |
parent | cc1a7748c867716966b6a38e75f89df5d92ee104 (diff) |
Stopgap fix to avoid using a null CGContext
Change-Id: I445f09dd842b62e5153c53bb5af066af71d492bd
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index f0b99798a83a..58fcc7f327a8 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -308,6 +308,12 @@ void AquaSalGraphics::copyBits( const SalTwoRect& rPosAry, SalGraphics *pSrcGrap return; } +#ifdef IOS + // If called from idle layout, mrContext is NULL, no idea what to do + if (!mrContext) + return; +#endif + // accelerate trivial operations /*const*/ AquaSalGraphics* pSrc = static_cast<AquaSalGraphics*>(pSrcGraphics); const bool bSameGraphics = (this == pSrc) |