Kaydet (Commit) c4601c03 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't return in a (rare?) case without restoring the CGContext state stack

Change-Id: I89040b62c0961be160fcfaa793e48326fa7a584c
üst ad69a033
......@@ -162,7 +162,6 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
if( mnCharCount <= 0 || !gr.CheckContext() )
return;
CGContextSaveGState( gr.mrContext );
Point pos = GetDrawPosition(Point(0,0));
SAL_INFO( "vcl.coretext.layout", "at pos (" << pos.X() << "," << pos.Y() <<") ctfont=" << mpStyle->GetFont() );
......@@ -171,6 +170,7 @@ void CoreTextLayout::DrawText( SalGraphics& rGraphics ) const
SAL_INFO( "vcl.coretext.layout", "Error cg_font is NULL" );
return;
}
CGContextSaveGState( gr.mrContext );
CGContextSetFont(gr.mrContext, cg_font);
CGContextSetFontSize(gr.mrContext, CTFontGetSize(mpStyle->GetFont()));
CGContextSetTextDrawingMode(gr.mrContext, kCGTextFill);
......
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