Comment 3 for bug 498649

Revision history for this message
jazzynico (jazzynico) wrote : Re: all relative links become absolute when "Color Markers to Match Stroke" is used

Apparently, all the xlink:href attributes of the document are converted to absolute links by Script::solve_reldir (in src/extensions/implementation/script.cpp) so that the scripts can use them. But they don't get their relative value when the script is terminated.

The links of the <image> elements are converted to relative by rebase_hrefs (in src/xml/rebase-hrefs.cpp) when saving the document, but nothing is done for <a> elements. Improving rebase_href to take all elements into account (and maybe calling rebase_href after the script execution) should fix the issue.