Closed Bug 322976 Opened 19 years ago Closed 17 years ago

Won't render a single-point path as a dot

Categories

(Core :: SVG, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mikhail.zabaluev, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8) Gecko/20051231 Firefox/1.5 Build Identifier: The SVG 1.1 specification says (http://www.w3.org/TR/SVG11/painting.html#StrokeProperties): "A subpath consisting of a single moveto is not stroked. A subpath consisting of a moveto and lineto to the same exact location or a subpath consisting of a moveto and a closepath will be stroked only if the 'stroke-linecap' property is set to "round", producing a circle centered at the given point." This is not what the GDI+ backend renders given such a path, which is nothing, no matter what the 'stroke-linecap' property is set to. I also observe this bug with a Linux build. Reproducible: Always Steps to Reproduce:
Attached image Test SVG file
Sorry. To be honest, I observed this first on Windows 2000, and now on Linux.
OS: Windows XP → Windows 2000
Confirming for current trunk build (cairo) on FreeBSD 6.0.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows 2000 → All
After looking at this for awhile, it appears that this behavior would be best added to the cairo codebase in cairo-path-stroke.c. Please see the cairo mailing list cairo@cairographics.org. A diff file containing changes that could be made to cairo-path-stroke.c was included as an attachment along with a query for adding this behavior to cairo to this mailing list.
I don't know exactly when this got fixed, but the testcase displays okay on recent trunk builds. --> marking as fixed
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
If the fix is unknown: -> WORKSFORME
Resolution: FIXED → WORKSFORME
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: