Comment 5 for bug 1473317

Revision history for this message
Alvin Penner (apenner) wrote :

The output of the lpe was monitored using the attached diff file. For a normal, non-horizontal line, the output was as follows, with both the original line, and the derivative, and the start and end points, behaving normally.

doEffect pwd2_in = X: {46.1131, 120.952}s^0 Y: {120.107, 73.2381}s^0
doEffect derivative = X: {74.8393, 74.8393}s^0 Y: {-46.869, -46.869}s^0
doEffect at0() = (74.83928600000002, -46.869046)
doEffect at1() = (74.83928600000002, -46.869046)

For a horizontal line the output was abnormal. The Y version of the derivative is null, not just zero. The calls to at0() and at1() both fail, and Inkscape crashes. These calls, at0 and at1 are used downstream, for example in the function Geom::unitVector.

doEffect pwd2_in = X: {43, 145}s^0 Y: {151, 151}s^0
doEffect derivative = X: {102, 102}s^0 Y: