titles and descriptions lost when saving as Plain SVG
Bug #249445 reported by
sas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
codedread |
Bug Description
Saving a file as Plain SVG loses 'title', 'desc' and 'metadata' elements that are children of 'rect', 'path', 'image', etc., elements. This happens because the write methods that produce the plain SVG don't expect such elements to have any children.
To reproduce:
(1) Draw a rectangle (or whatever).
(2) Add a title and description (right click, Object Properties, etc.).
(3) Save the file as Plain SVG.
(4) Open the plain SVG file, and check the Object Properties dialog for the object - the title and description will not be there.
tags: | added: metadata saving |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think that sp_item_write() in src/sp-item.cpp needs to be modified so that if (flags & SP_OBJECT_ WRITE_BUILD) then child nodes are written. But this will cause the content of groups to be written twice, so the code that writes child nodes in sp_group_write() needs to be removed. Is this all that needs to be done?