diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-23 23:18:23 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-26 19:00:16 +0200 |
commit | 16498b264c8729c61b99946b4e532fdd3a8d9828 (patch) | |
tree | 4fb0f8b383a8ca011c38438cb9c24f0a8a25cc11 /vcl | |
parent | Resolves fdo#61540 (diff) | |
download | core-16498b264c8729c61b99946b4e532fdd3a8d9828.tar.gz core-16498b264c8729c61b99946b4e532fdd3a8d9828.zip |
Move SAL_WARN_IF
Change-Id: If543e44a1f4aa08a38bf273a3e50a7cd7d57e84d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/salgdi.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/coretext/salgdi.cxx b/vcl/coretext/salgdi.cxx index 7a064f049107..d2a028107a45 100644 --- a/vcl/coretext/salgdi.cxx +++ b/vcl/coretext/salgdi.cxx @@ -281,14 +281,14 @@ void QuartzSalGraphics::SetTextColor( SalColor nSalColor ) bool SvpSalGraphics::CheckContext() { - SAL_WARN_IF( mrContext == NULL, "vcl.ios", "CheckContext() failed" ); - basegfx::B2IVector size = m_aDevice->getSize(); basebmp::RawMemorySharedArray pixelBuffer = m_aDevice->getBuffer(); mrContext = CGBitmapContextCreate(pixelBuffer.get(), size.getX(), size.getY(), 8, m_aDevice->getScanlineStride(), CGColorSpaceCreateDeviceRGB(), kCGImageAlphaLast|kCGBitmapByteOrder32Little); + SAL_WARN_IF( mrContext == NULL, "vcl.ios", "CheckContext() failed" ); + return (mrContext != NULL); } |