diff options
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/pdf/pdf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/pdf/pdf.c b/addons/pdf/pdf.c index 5a0448b1..088f954c 100644 --- a/addons/pdf/pdf.c +++ b/addons/pdf/pdf.c @@ -1096,12 +1096,14 @@ static void tick(void *v, pa_tick *t) { t->prefix_len = n > 0 ? (uint32_t)n : 0; } -/* A view told: kept by its id, laid out for when it is the one (or none is). */ +/* A view told: kept by its id, laid out for when it is the one, or none + * is, or the one is glyph art and this shows pictures (until an input's + * view is taken: one layout, not one a view, until the Zig port). */ static void view(void *v, const pa_view *pv) { pdf *st = v; if (!st || pv->id < 1 || pv->id > VIEWS) return; st->views[pv->id - 1] = *pv; - if (pv->id == st->view.id || !st->view.cols) st->view = *pv; + if (pv->id == st->view.id || !st->view.cols || (st->view.glyphs && pv->cols && !pv->glyphs)) st->view = *pv; for (int i = 0; i < VIEWS && !st->view.cols; i++) if (st->views[i].cols) st->view = st->views[i]; } |
