Allowing/disalowing relative coordinates for paths requires restart

Bug #704589 reported by fAX
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

The problem:
The 'Allow relative coordinates' option in 'SVG Output' preferences requires restart and has no immediate effect.

Additionally, if I restart Inkscape and then load a file, modify a path, and then save it, everything works as expected. But if I press 'Undo' afterward and then re-save, the saved file has the path in the format it was before, and not as it is defined by the check box above.

Tags: saving svg
Revision history for this message
su_v (suv-lp) wrote :

tested with Inkscape 0.48.0 and 0.48+devel r10009 on OS X 10.5.8

> The 'Allow relative coordinates' option in 'SVG Output'
> preferences requires restart and has no immediate effect.

Not confirmed: changing the preference has immediate effect on new paths, and when a rewrite of the path data of existing paths is triggered. Note that not all paths are rewritten with relative coordinates [1].

> But if I press 'Undo' afterward and then re-save, the
> saved file has the path in the format it was before

That's to be expected and no bug: 'Undo' reverts to the previously written path data, and on save, none of the path data gets rewritten. The setting only affects new paths and rewriting of existing paths triggered by modification.

[1] See <http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Optimized_path_data> as well as the tooltip of the preference setting.

Revision history for this message
su_v (suv-lp) wrote :

Possibly you want a command or button to trigger the rewrite of all path data according to the preference settings for SVG output?

Related:
Bug #690683 “Changing "Force repeat commands" has effect only on new or modified paths”
<https://bugs.launchpad.net/inkscape/+bug/690683>

tags: added: saving svg
Revision history for this message
fAX (fax-k-root) wrote :

Ok. I'll make myself more clear. Before the restart I've *disabled* the option and then modified one point in a path that had relative coordinates. After the save, there were still relative coordinates in the path. After the restart the behavior was different (as expected).

I'll recheck tomorrow to make sure it is version 0.48.

Thank you!

Revision history for this message
su_v (suv-lp) wrote :

You can monitor any changes to the path data live via 'Edit > XML Editor' to verify whether relative or absolute path commands are used after modifying the path.

su_v (suv-lp)
Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Tested again with Inkscape 0.47, 0.48.0, 0.48.5 and 0.91pre3 (on OS X 10.7.5): the originally reported issue was not reproduced based on the provided information (the setting is in effect without requiring a restart for paths which are modified after changing the setting - works with a simple path as well as with a compound path: all data in the 'd' string was converted to absolute coordinates as expected).

Closing - not reproducible based on the available information.

Feel free to reopen if this was closed in error, and you are still able to reproduce the reported issue with current versions. In this case a sample test case (SVG files), saved before and after, might be helpful to further investigation.

Changed in inkscape:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.