missing test for start of line caused crashes.

This commit is contained in:
Martin Poirier
2009-01-09 20:35:37 +00:00
parent f1c4b4e7c5
commit 7e76ce5d67

View File

@@ -1456,6 +1456,11 @@ int sk_adjustIndexes(SK_Sketch *sketch, int *start, int *end)
*start = sketch->adj.start;
*end = sketch->adj.end;
if (*start == -1)
{
*start = 0;
}
if (*end == -1)
{
*end = sketch->adj.target->nb_points - 1;