Stroke width rounding errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Diederik van Lierop |
Bug Description
inkscape version: 0.44.1, built Sep 7 2006
Stroke width gets modified slightly when changing an
object even with "Scale stroke width" unchecked,
resulting in creeping rounding errors.
To demonstrate: Create simple rectangle with "Snap
bounding boxes to grid" set, grid = 1px, set stroke
width to 1 and save:
<rect
id="rect3268"
style="
oke-linecap:
t:0;stroke-
y="10.499965"
x="10.500224"
height="478.99966"
width="479.00003" />
This is correct. Then reshape rectangle (stretch one
side for example) and save again:
<rect
id="rect3268"
style="
99988;stroke-
dashoffset:
y="10.499965"
x="10.500221"
height="478.99966"
width="488.99963" />
Now stroke-width is 0.99999988, although this is
displayed as "1.000" in the stroke style dialog.
This has a knock-on effect on the x/y/width/height
values, resulting in imprecise values
(478.99966,
Changed in inkscape: | |
importance: | Undecided → Medium |
status: | New → Incomplete |
Changed in inkscape: | |
assignee: | nobody → Diederik van Lierop (mail-diedenrezi) |
Changed in inkscape: | |
status: | Confirmed → Incomplete |
tags: | added: transformations |
tags: | added: precision |
tags: | added: bug-migration |
Confirmed under Linux in today's SVN (rev 17236). Almost certainly related to bug 174046...