From 5ae6a2152f62357790c15667b5c4b3f40dc5f3a9 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 31 Oct 2021 10:20:35 -0400 Subject: [PATCH] [ncvgeom] always set pixy/pixx with non-NULL n --- src/lib/visual.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/visual.c b/src/lib/visual.c index 9e8baabd5..4e4a9bcc5 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -186,11 +186,13 @@ int ncvisual_geom_inner(const tinfo* ti, const ncvisual* n, return -1; } } + if(n){ + geom->pixy = n->pixy; + geom->pixx = n->pixx; + } // when nc is NULL, we only report properties intrinsic to the ncvisual, // i.e. only its original pixel geometry. if(ti == NULL){ - geom->pixy = n->pixy; - geom->pixx = n->pixx; return 0; } // determine our blitter