https://bugs.documentfoundation.org/show_bug.cgi?id=98254

            Bug ID: 98254
           Summary: lincap round is missing for zero-length line and for
                    zero-length path
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 123056
  --> https://bugs.documentfoundation.org/attachment.cgi?id=123056&action=edit
zero-length segments with linecap "round"

In SVG import, the linecaps are missing, if the line segment has zero-length.
But in the SVG spec you read in
https://www.w3.org/TR/SVG/painting.html#StrokeProperties
"A subpath (see Paths) consisting of a single moveto shall not be stroked. Any
zero length subpath shall not be stroked if the ‘stroke-linecap’ property has a
value of butt but shall be stroked if the ‘stroke-linecap’ property has a value
of round or square, producing respectively a circle or a square centered at the
given point. Examples of zero length subpaths include 'M 10,10 L 10,10', 'M
20,20 h 0', 'M 30,30 z' and 'M 40,40 c 0,0 0,0 0,0'."
and in https://www.w3.org/TR/SVG/implnote.html#PathElementImplementationNotes
"As mentioned in Stroke Properties, linecaps must be painted for zero length
subpaths when ‘stroke-linecap’ has a value of round or square."

The ODF specification (ODF1.2 section 20.164) has no own text for the attribute
"svg:stroke-linecap" but refers to SVG. And the draw:path element refers to the
attribute svg:d. Therefore the linecaps should be drawn in case of value
"round" and "square" for Draw elements as well.

Such caps on zero-length segments should result in a circle or square
respectively. Opening the attached file in Inkscape, Batik, Chrome or
Seamonkey, you can see, that the caps are drawn too for zero-length lines and
polylines.

Because the caps of zero-length segments are not drawn in case of our own
objects, it is likely, that the relevant code is not in svgio but in basegfx.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to