glyphr-studio / Glyphr-Studio-Desktop

A desktop client for Glyphr Studio built in electron
Other
437 stars 46 forks source link

SVG Import fails to parse a path’s move/line commands #53

Closed jeremy-w closed 4 years ago

jeremy-w commented 4 years ago

I am using the Web version from iPadOS 13.3.1 Safari.

I pasted the following path:

<path d="M300+650L300+700L700+700L700+650L300+650Z" opacity="0.5" fill="#000000"/>

When I hit “Import SVG”,

Then I was presented with an error saying a move or line command had NaN as one of its coordinates:

EE2F9BF5-9827-4DA2-8237-4E7601E82547

(Sorry, cannot seem to select the error text itself for copy-paste.)

(The path itself came from a Vectornator SVG export, after I deleted the vectornator:layerName attribute the parser did not like.)

jeremy-w commented 4 years ago

Whoops, this is the Electron version issue tracker, not Web. Cloned to: https://github.com/glyphr-studio/Glyphr-Studio-1/issues/303