Skip to content

Commit

Permalink
Fix composer map frame/annotations not showing on OSX (refs #12747)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 28, 2015
1 parent 5386a23 commit effbfcd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/composer/qgscomposermapgrid.cpp
Expand Up @@ -667,7 +667,14 @@ void QgsComposerMapGrid::draw( QPainter* p )
}

p->restore();

//QPainter::setClipping(false) seems to be broken on OSX (#12747), setClipRect
//fails on other platforms...
#ifndef Q_OS_MAC
p->setClipping( false );
#else
p->setClipRect( thisPaintRect, Qt::NoClip );
#endif

if ( mGridFrameStyle != QgsComposerMapGrid::NoFrame )
{
Expand Down

0 comments on commit effbfcd

Please sign in to comment.