baseProfile incorrectly preserved

Bug #166958 reported by Bug Importer
0
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
sas

Bug Description

Greetings, Inkscape gurus!

Inkscape 0.42 preserves baseProfile attributes, even
when they are no longer appropriate.

For example, open the attached file in Inkscape 0.42,
change the fill to a gradient and save the file. The
saved file still claims to be SVG 1.1 Tiny, but now
contains a gradient and CSS styling, neither of which
SVG 1.1 Tiny supports.

Suggested solution: always strip out baseProfile
attributes. Of course, you could instead try to figure
out when the baseProfile is still appropriate, but,
believe me, it's a whole lot easier just to remove it
unconditionally.

Revision history for this message
Bug Importer (bug-importer) wrote :
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Why are you saying that "claims to be SVG 1.1 Tiny"? AFAIK
it claims to be SVG 1.1, that's all.

Revision history for this message
Bug Importer (bug-importer) wrote :

Hi,

I mean that it has

   baseProfile="tiny"

which is the baseProfile value for SVG Tiny (as defined in
section 4 of the SVG Mobile spec).

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Ah, got it. Indeed it makes sense that we should just remove
that attribute whenever we see it (we never insert it
ourselves), at least until we support profiles properly.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
sas (sas-sas) wrote :

Patch attached.

Changed in inkscape:
assignee: nobody → sas-sas
status: Confirmed → In Progress
Revision history for this message
sas (sas-sas) wrote :

Added to SVN (revision 18864).

Changed in inkscape:
status: In Progress → Fix Released
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.