fix empty slices errors
This commit is contained in:
parent
8fd32c033b
commit
33225af265
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@
|
||||||
|
|
||||||
widget.slices = slices;
|
widget.slices = slices;
|
||||||
|
|
||||||
if (!slices) {
|
if (!slices || slices.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -370,7 +370,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ensure we start against a layer with shells
|
// ensure we start against a layer with shells
|
||||||
while (start.up && start.topShells().length === 0) {
|
while (start && start.up && start.topShells().length === 0) {
|
||||||
start = start.up;
|
start = start.up;
|
||||||
}
|
}
|
||||||
// if a brim applies, add that width to anchor
|
// if a brim applies, add that width to anchor
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue