Unexpected line change with rounded caps

Bug #1680179 reported by theozh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
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:
http://www.inkscapeforum.com/viewtopic.php?f=22&t=31905

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:
https://bugs.launchpad.net/inkscape/+bug/1554531

Tags: styles
Revision history for this message
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
Revision history for this message
Alvin Penner (apenner) wrote :

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

Revision history for this message
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
Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to rev 15626

Changed in inkscape:
status: Triaged → Fix Committed
assignee: nobody → Alvin Penner (apenner)
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.93
Max Gaukler (mgmax)
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.