Bug 98119 - SVG: Markers are not rendered on empty line
Summary: SVG: Markers are not rendered on empty line
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.2.0.0.alpha0+
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Regina Henschel
URL:
Whiteboard: target:5.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 16:55 UTC by Regina Henschel
Modified: 2016-10-25 19:08 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
bottom right show the case of a marker on an empty line (1.69 KB, image/svg+xml)
2016-02-23 16:55 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-02-23 16:55:22 UTC
Created attachment 122921 [details]
bottom right show the case of a marker on an empty line

In regard to markers there is no difference between line, path and polyline. Therefore a marker should be rendered on an empty line the same way as it is rendered on an empty polyline or an empty path.
Comment 1 Regina Henschel 2016-02-28 00:04:08 UTC
In https://www.w3.org/TR/SVG/implnote.html#PathElementImplementationNotes
you find
"If markers are specified, then a marker is drawn on every applicable vertex, even if the given vertex is the end point of a zero-length path segment and even if "moveto" commands follow each other."

Inkscape, Seamonkey, Chrome and Batik show a marker for a zero-length line. LibreOffice should do that too.
Comment 2 Commit Notification 2016-02-28 10:35:41 UTC
Regina Henschel committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=74040d447912eff5f7366b8ae61244ad101000dc

tdf#98119 Allow markers on zero-length lines

It will be available in 5.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.