trunk: ellipse tool flips segment to opposite half at angle 180° (rev >= 12594)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Markus Engel |
Bug Description
Steps to reproduce:
1) launch inkscape (new default prefs, default doc)
2) draw a circle
3) grab the rounded knot (arc handle) and drag it with 'Ctrl' pressed clock-wise, keeping the pointer well outside the circle (-> to draw a segment, not an arc)
Expected result:
The filled area of the segment correlates with the position of the arc handle.
Actual result:
If the arc spans 180° horizontally (or vertically), the filled area of the segment "flips" to the opposite half of the circle, and "flips" back as soon as the arc is ≠ 180° (see attached animated gif for a demonstration).
First encountered with r12602 on OS X 10.7.5, reproduced on Ubuntu 13.04 (VM, 64bit) with r12594 (PPA).
Based on tests with archived builds on OS X:
- not reproduced with r12593 and earlier revisions
- reproduced with r12594 and later,
this glitch seems to have been introduced in
Revision 12594: More refactoring, creation of member methods, ...
<http://
Changed in inkscape: | |
milestone: | 0.91 → 0.91.1 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Hm, look at 2geom/ray.h. The function "make_angle_ bisector_ ray" returns a ray with (0, 0) as its versor when you pass it two rays that start in (0, 0) and go in the opposite direction. I think this is not valid as this returned ray is not defined.
Try the attached patch; although that's not the "clean" solution to this. This should rather be fixed in 2geom directly.