fix Point is invalid

This commit is contained in:
Pete Matsyburka
2026-01-27 20:07:57 +02:00
parent 96530bd809
commit 1e5f55c1d6
3 changed files with 3 additions and 3 deletions
@@ -514,7 +514,7 @@ export default {
redrawCanvas (oldWidth, oldHeight) {
const canvas = this.$refs.canvas
if (this.pad && !this.isTextSignature && !this.pad.isEmpty()) {
if (this.pad && !this.isTextSignature && !this.pad.isEmpty() && oldWidth > 0 && oldHeight > 0) {
const sx = canvas.width / oldWidth
const sy = canvas.height / oldHeight