mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-08 11:20:01 +02:00
deal more robustly with missing coordinates
This commit is contained in:
parent
033de65a1c
commit
ecf0553567
1 changed files with 4 additions and 1 deletions
5
neat.js
5
neat.js
|
@ -143,13 +143,16 @@ function setupInterface(data, file, urls) {
|
|||
let img_url = urls[data.data[nRow]['url_id']];
|
||||
|
||||
if (img_url == "http://empty")
|
||||
return
|
||||
return;
|
||||
|
||||
let raw_left = parseInt(data.data[nRow]['left']);
|
||||
let raw_right = parseInt(data.data[nRow]['right']);
|
||||
let raw_top = parseInt(data.data[nRow]['top']);
|
||||
let raw_bottom = parseInt(data.data[nRow]['bottom']);
|
||||
|
||||
if (isNaN(raw_left) || isNaN(raw_right) || isNaN(raw_top) || isNaN(raw_bottom))
|
||||
return;
|
||||
|
||||
let left = raw_left;
|
||||
let right = raw_right;
|
||||
let top = raw_top;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue