dunno what that is, but it doesn't seem to break anything

This commit is contained in:
Tamius Han 2019-09-14 23:23:52 +02:00
parent 44caa5f492
commit b1af778656

View File

@ -727,7 +727,12 @@ class ArDetector {
} catch (e) { } catch (e) {
// edges weren't gucci, so we'll just reset // edges weren't gucci, so we'll just reset
// the aspect ratio to defaults // the aspect ratio to defaults
this.guardline.reset(); try {
this.guardline.reset();
} catch (e) {
// guardline wasn't gucci either, but we'll just ignore
// that and reset the aspect ratio anyway
}
this.conf.resizer.setAr({type: AspectRatio.Automatic, ratio: this.getDefaultAr()}); this.conf.resizer.setAr({type: AspectRatio.Automatic, ratio: this.getDefaultAr()});
} }
} }