Jump to content
Domvel

SVG Import removes groups. (ungroups)

Recommended Posts

Affinity Desginer 1.7.1.404 removes the groups of an imported SVG file. If a group only contains one child, it ungoups it. This is an unexpected behavior. Because it manipulates the SVG data.

Input (SVG Source, Snippet):

<g id="One">
  <rect x="0" y="0" width="300" height="100" fill="#f53d3d"/>
  <rect x="0" y="100" width="300" height="100" fill="#32db64"/>
</g>

<g id="Two">
  <rect x="0" y="200" width="300" height="100" fill="#488aff"/>
</g>

Output (Imported, Snippet, interpreted as SVG)

<g id="One">
  <rect x="0" y="0" width="300" height="100" fill="#f53d3d"/>
  <rect x="0" y="100" width="300" height="100" fill="#32db64"/>
</g>

<rect id="Two" x="0" y="200" width="300" height="100" fill="#488aff"/>

See attached files.
I think this bug is not windows-only.

Actual:

actual.png

Expected:

expected.png

demo.svg

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.