Custom marker displayed incorrectly in other SVG renderers

Bug #230491 reported by Tavmjong Bah
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Tavmjong Bah

Bug Description

A marker made with the Object to Marker command renders incorrectly in Opera 9.5, Batik, and Firefox 3. Only 1/4 of the marker is displayed. To reproduce. Make a simple square marker with the above command, apply to a path and view resulting SVG file in any of the above browsers.

I am sure this has to do with view box issues. A quick fix is to add the
     style="overflow:visible"
attribute to the marker definition.

Tags: markers svg
Revision history for this message
Thomas Holder (speleo3) wrote :

confirmed with rev 22327.
The new marker is missing style="overflow:visible"

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
tags: added: markers svg
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

The problem was that the marker was created around (0,0) while the bounding box for a marker goes from (0,0) to (markerWidth, markerHeight). Since the majority of the marker was outside the bounding box, it wasn't being drawn by the browsers.

The marker position (refX, refY) was not being set (thus defaulting to (0,0). These attributes are now being set correctly with the marker shifted proper position.

Fixed in r12986.

Nothing like fixing your own 5.7 year old bug.

su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Tavmjong Bah (tavmjong-free)
milestone: none → 0.91
status: Confirmed → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → 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.