Commit 7158afc1 authored by Harald Sitter's avatar Harald Sitter 💎

fix click area marking on loaded jsons

i isn't a number for some reason so the === type assertion was never true
parent 4758e02e
......@@ -325,7 +325,9 @@ ApplicationWindow {
var select = selector.createObject()
select.fromObject(a.area[i])
if (i === a.area.length - 1) { // last
// i isn't a number. I don't know why. Javascript :@
if (Number(i) === a.area.length - 1) { // last
console.log("clickarea!")
select.clickArea = true
}
selectorModel.append(select)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment