From 0b1ea830612aa08f6999e5a2f62bcfe5b0fdb5eb Mon Sep 17 00:00:00 2001 From: Coxxs Date: Tue, 16 Jan 2024 09:14:40 +0800 Subject: [PATCH] fix: Apply masks when editing in Data Sequence Analysis --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index aa97a28..e8b0a60 100644 --- a/js/main.js +++ b/js/main.js @@ -1426,12 +1426,12 @@ function updateBlock(value, cls){ else new_val = parseInt(new_val); - /*if(mask(mask_pattern, cord[0], cord[1])){ + if(mask(mask_pattern, parseInt(cord[0]), parseInt(cord[1]))){ if(new_val == 1) new_val = 0; else if(new_val == 0) new_val = 1; - }*/ + } qr_array[cord[0]][cord[1]] = new_val; }