Skip to content
Permalink
Browse files

Fix composer map frame/annotations not showing on OSX (refs #12747)

  • Loading branch information
nyalldawson committed May 28, 2015
1 parent b3f9b66 commit f5d4088a42a86afcf6073d8a96d7084e3ec8268e
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/composer/qgscomposermapgrid.cpp
@@ -664,7 +664,13 @@ void QgsComposerMapGrid::draw( QPainter* p )
}

p->restore();

p->setClipping( false );
#ifdef Q_OS_MAC
//QPainter::setClipping(false) seems to be broken on OSX (#12747). So we hack around it by
//setting a larger clip rect
p->setClipRect( mComposerMap->mapRectFromScene( mComposerMap->sceneBoundingRect() ).adjusted( -10, -10, 10, 10 ) );
#endif

if ( mGridFrameStyle != QgsComposerMapGrid::NoFrame )
{

0 comments on commit f5d4088

Please sign in to comment.
You can’t perform that action at this time.