Unexpected line change with rounded caps

Bug #1680179 reported by theozh on 2017-04-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alvin Penner

Bug Description

If you have a straight horizontal line, e.g. length 200mm, Stroke 100mm
The size of this object, i.e. the bounding box, Width x Height depends logically on the end caps.
Butt cap: 200 x 100 (as expected)
Round cap: 301.424 x 100.01 (Why ???)
Square cap: 300 x 100 (as expected)

See more information:

Consequently, when such a rounded stroke will be converted to path, the length and width is not what you would expect.
Of course, assuming the rounded cap is a half circle. But it might be not as the (maybe related) bug report implies:

Alvin Penner (apenner) wrote :

- confirmed on Windows 10, Inkscape 0.92+devel 15614
- the behavior of the round cap case is unexpected, should be the same as the square cap

Changed in inkscape:
status: New → Confirmed
Alvin Penner (apenner) wrote :

reproduced on Windows XP, Inkscape 0.91 r13725 (Jan 30 2015)

jazzynico (jazzynico) wrote :

Also reproduced on Xubuntu 16.04, Inkscape 0.91 and lp:inkscape/0.92.x rev. 15413.

tags: added: styles
removed: caps stroke
Changed in inkscape:
status: Confirmed → Triaged
Alvin Penner (apenner) wrote :

fix committed to rev 15626

Changed in inkscape:
status: Triaged → Fix Committed
assignee: nobody → Alvin Penner (apenner)
jazzynico (jazzynico) on 2017-04-20
Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.93
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers