diff options
Diffstat (limited to 'platform/x11/pdfapp.c')
-rw-r--r-- | platform/x11/pdfapp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index efa7f460..f038f945 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -808,7 +808,7 @@ static void pdfapp_updatepage(pdfapp_t *app) for (pannot = pdf_first_annot(app->ctx, (pdf_page*)app->page); pannot; pannot = pdf_next_annot(app->ctx, pannot)) { - if (pdf_annot_is_dirty(app->ctx, pannot)) + if (pannot->has_new_ap) { fz_annot *annot = (fz_annot*)pannot; fz_rect bounds; @@ -826,6 +826,7 @@ static void pdfapp_updatepage(pdfapp_t *app) fz_drop_device(app->ctx, idev); fz_catch(app->ctx) fz_rethrow(app->ctx); + pannot->has_new_ap = 0; } } |