[ncvgeom] always set pixy/pixx with non-NULL n

This commit is contained in:
nick black 2021-10-31 10:20:35 -04:00 committed by nick black
parent 95f4ea32aa
commit 5ae6a2152f

View File

@ -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