Skip to content

Commit

Permalink
Fixed bug splitting paths
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 21, 2019
1 parent c36a674 commit 3b35af5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions earthsim/models/poly_draw.ts
Expand Up @@ -17,15 +17,15 @@ export class PolyVertexDrawToolView extends PolyDrawToolView {
const xpaths = cds.data[xkey]
const ypaths = cds.data[ykey]
for (let index = 0; index < xpaths.length; index++) {
const xs = xpaths[index]
let xs = xpaths[index]
if (!isArray(xs)) {
const xarray = Array.from(xs)
cds.data[xkey][index] = xarray
xs = Array.from(xs)
cds.data[xkey][index] = xs
}
const ys = ypaths[index]
let ys = ypaths[index]
if (!isArray(ys)) {
const yarray = Array.from(ys)
cds.data[ykey][index] = yarray
ys = Array.from(ys)
cds.data[ykey][index] = ys
}
for (let i = 0; i < xs.length; i++) {
if ((xs[i] == x) && (ys[i] == y) && (i != 0) && (i != (xs.length-1))) {
Expand Down

0 comments on commit 3b35af5

Please sign in to comment.