Skip to content

Commit f5d4088

Browse files
committedJun 24, 2015
Fix composer map frame/annotations not showing on OSX (refs #12747)
1 parent b3f9b66 commit f5d4088

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/core/composer/qgscomposermapgrid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,13 @@ void QgsComposerMapGrid::draw( QPainter* p )
664664
}
665665

666666
p->restore();
667+
667668
p->setClipping( false );
669+
#ifdef Q_OS_MAC
670+
//QPainter::setClipping(false) seems to be broken on OSX (#12747). So we hack around it by
671+
//setting a larger clip rect
672+
p->setClipRect( mComposerMap->mapRectFromScene( mComposerMap->sceneBoundingRect() ).adjusted( -10, -10, 10, 10 ) );
673+
#endif
668674

669675
if ( mGridFrameStyle != QgsComposerMapGrid::NoFrame )
670676
{

0 commit comments

Comments
 (0)
Please sign in to comment.