Skip to content
Permalink
Browse files

Ensure annotation frame is closed before rendering

  • Loading branch information
nyalldawson committed Jan 30, 2017
1 parent 5584c53 commit 404056558b317fb9d90edb664413df6ebf4b33b4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/annotations/qgsannotation.cpp
@@ -277,6 +277,8 @@ void QgsAnnotation::drawFrame( QgsRenderContext& context ) const
}
poly << currentSegment.p2();
}
if ( poly.at( 0 ) != poly.at( poly.count() - 1 ) )
poly << poly.at( 0 );

mFillSymbol->startRender( context );
mFillSymbol->renderPolygon( poly, &rings, nullptr, context );

0 comments on commit 4040565

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