summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-23 23:18:23 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-26 19:00:16 +0200
commit16498b264c8729c61b99946b4e532fdd3a8d9828 (patch)
tree4fb0f8b383a8ca011c38438cb9c24f0a8a25cc11 /vcl
parent60570afbeaa058b6f8a9b878cc41b1535ef6e5f0 (diff)
Move SAL_WARN_IF
Change-Id: If543e44a1f4aa08a38bf273a3e50a7cd7d57e84d
Diffstat (limited to 'vcl')
-rw-r--r--vcl/coretext/salgdi.cxx4
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);
}