Skip to content

Commit 4040565

Browse files
committed
Ensure annotation frame is closed before rendering
1 parent 5584c53 commit 4040565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/annotations/qgsannotation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ void QgsAnnotation::drawFrame( QgsRenderContext& context ) const
277277
}
278278
poly << currentSegment.p2();
279279
}
280+
if ( poly.at( 0 ) != poly.at( poly.count() - 1 ) )
281+
poly << poly.at( 0 );
280282

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

0 commit comments

Comments
 (0)