Skip to content

Commit

Permalink
[composer] Draw annotations over grids/overviews (fix #10300)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 30, 2017
1 parent 2293973 commit 4a0793d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -359,9 +359,6 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem*,

//restore rotation
painter->restore();

//draw canvas items
drawAnnotations( painter );
}
else if ( mComposition->plotStyle() == QgsComposition::Print ||
mComposition->plotStyle() == QgsComposition::Postscript )
Expand Down Expand Up @@ -398,10 +395,6 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem*,

//restore rotation
painter->restore();

//draw canvas items
drawAnnotations( painter );

mDrawing = false;
}

Expand All @@ -416,6 +409,10 @@ void QgsComposerMap::paint( QPainter* painter, const QStyleOptionGraphicsItem*,
{
mGridStack->drawItems( painter );
}

//draw canvas items
drawAnnotations( painter );

if ( shouldDrawPart( Frame ) )
{
drawFrame( painter );
Expand Down

0 comments on commit 4a0793d

Please sign in to comment.