Don't draw zero-length lines.
Causes "Vector::WithMagnitude(...) of zero vector!"pull/4/head
parent
e19a2f4f35
commit
d72b250a64
|
@ -324,6 +324,7 @@ void ssglStippledLine(Vector a, Vector b, double width,
|
|||
|
||||
void ssglFatLine(Vector a, Vector b, double width)
|
||||
{
|
||||
if(a.EqualsExactly(b)) return;
|
||||
// The half-width of the line we're drawing.
|
||||
double hw = width / 2;
|
||||
Vector ab = b.Minus(a);
|
||||
|
|
Loading…
Reference in New Issue