After undo, arcs/circles written incorrectly as ellipse instead of path
Summary:
I somehow made an arc that Inkscape saved as an <ellipse>
with a d
attribute that doesn't correctly render in Web browsers, instead of the correct <path>
. This bug looks like #2489 (closed), but happened in a file I made entirely with 1.1.1.
Steps to reproduce:
- Draw an ellipse
- Drag start or end handle to turn into slice
- Undo
- Drag start or end handle to turn into slice
- Save
What happened?
When I saved an Inkscape SVG, it wrote this:
<ellipse style="fill:#55ddff;stroke-width:0.884055;stroke-miterlimit:0" id="path1241" sodipodi:type="arc" sodipodi:cx="8" sodipodi:cy="8.55702" sodipodi:rx="4" sodipodi:ry="8" sodipodi:start="3.14159" sodipodi:end="0" sodipodi:open="true" sodipodi:arc-type="arc" d="m 4,8.55702 a 4,8 0 0 1 2,-6.9282 4,8 0 0 1 4,0 4,8 0 0 1 2,6.9282" inkscape:transform-center-y="-4" inkscape:tile-cx="8" inkscape:tile-cy="7.99997" inkscape:tile-w="8" inkscape:tile-h="8" inkscape:tile-x0="4" inkscape:tile-y0="-3.00407e-05" />
And when I saved it as Plain SVG, it wrote this:
<ellipse style="fill:#55ddff;stroke-width:0.884055;stroke-miterlimit:0" id="path1241" d="m 4,8.55702 a 4,8 0 0 1 2,-6.9282 4,8 0 0 1 4,0 4,8 0 0 1 2,6.9282" />
What should have happened?
It should have written <path>
elements.
Version info
Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20)
GLib version: 2.70.0
GTK version: 3.24.30
glibmm version: 2.66.1
gtkmm version: 3.24.5
libxml2 version: 2.9.12
libxslt version: 1.1.34
Cairo version: 1.17.4
Pango version: 1.48.10
HarfBuzz version: 2.9.1
Poppler version: 21.08.0
OS version: Windows 10 2009
Introduced in 7a6a1baa
Author: Joseph Da Silva <joseph.f.dasilva3@gmail.com>
Date: Wed Mar 20 21:22:46 2019 +0530
Fixed: circles and ellipses had wrong element names in XML editor (Issue #116)