trim_reel_overhang: don't rely on assert()s

pull/873/head
nick black 4 years ago
parent 4a8d56cbfc
commit ac4a53bf3b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -391,6 +391,9 @@ trim_reel_overhang(ncreel* r, nctablet* top, nctablet* bottom){
assert(bottom);
assert(bottom->p);
int y;
if(!top || !top->p || !bottom || !bottom->p){
return -1;
}
//fprintf(stderr, "trimming: top %p bottom %p\n", top->p, bottom->p);
ncplane_yx(top->p, &y, NULL);
int ylen, xlen;

Loading…
Cancel
Save