path is drawn invisibly depending on exact coordinates and stroke-linecap

Bug #1184418 reported by Roland Illig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I have this SVG file, showing an empty xiangqi board:

<svg xmlns="http://www.w3.org/2000/svg" width="635" height="706" version="1.1">
<path style="stroke:#000;stroke-width:2px;stroke-linecap:square" d="
M 033,034 l 568,000
M 033,105 l 568,000
M 033,176 l 568,000
M 033,247 l 568,000
M 033,318 l 568,000
M 033,389 l 568,000
M 033,460 l 568,000
M 033,531 l 568,000
M 033,602 l 568,000
M 033,673 l 568,000
M 033,034 l 000,284
M 104,034 l 000,284
M 175,034 l 000,284
M 246,034 l 000,284
M 317,034 l 000,284
M 388,034 l 000,284
M 459,034 l 000,284
M 530,034 l 000,284
M 601,034 l 000,284
M 033,389 l 000,284
M 104,389 l 000,284
M 175,389 l 000,284
M 246,389 l 000,284
M 317,389 l 000,284
M 388,389 l 000,284
M 459,389 l 000,284
M 530,389 l 000,284
M 601,389 l 000,284
M 246,034 l 142,142
M 388,034 l -142,142
M 246,531 l 142,142
M 388,531 l -142,142" />
</svg>

When I load that file into Inkscape 0.48 on Windows 7, it shows up as expected.

But when I change the first coordinate from 033,034 to 033,033, the complete lower haft of the board disappears. The paths are still there, but they are not painted black.

The curious thing is that when I change stroke-linecap from "square" to "round", the lower lines reappear. I don't understand this, but I doubt that this is normal, intended behavior.

Tags: renderer
Revision history for this message
su_v (suv-lp) wrote :

Attaching SVG code as actual SVG file for convenience (for testers).

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
tags: added: renderer
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.4 on OS X 10.7.5,
not reproduced with Inkscape 0.48+devel r12343 (new renderer).

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.49
status: New → Fix Committed
su_v (suv-lp)
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.