Skip to content

Commit 929f993

Browse files
committed
1 parent cff9756 commit 929f993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void TextPageDecRef(TextPage *text_page) { text_page->decRefCnt(); }
312312
void render_annotations(std::unique_ptr<Gfx> &gfx, Annots *annots) {
313313
gfx->saveState();
314314

315-
for (Annot *annot : annots->getAnnots()) {
315+
for (const std::shared_ptr<Annot> &annot : annots->getAnnots()) {
316316
annot->draw(gfx.get(), false);
317317
}
318318

0 commit comments

Comments
 (0)