add svg import warning if no polylines
This commit is contained in:
parent
34972e1cce
commit
4e7e29c14d
1 changed files with 4 additions and 0 deletions
|
|
@ -850,6 +850,10 @@ function platformLoadFiles(files, group) {
|
|||
group = group || [];
|
||||
let svg = load.SVG.parse(data.textDecode('utf-8'));
|
||||
let ind = 0;
|
||||
if (svg.length === 0) {
|
||||
api.show.alert(`SVG contains no polylines`, 10);
|
||||
api.show.alert(`Fonts must be converted to paths`, 10);
|
||||
}
|
||||
for (let v of svg) {
|
||||
platformLoadWidget(group, svg[ind++], ind ? `${name}-${ind}` : name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue