Skip to content
Permalink
Browse files

Make sure computed triangle height is always positive. (#5731)

  • Loading branch information...
sdlime committed Jan 23, 2019
1 parent fa25cbc commit 1cec5bf0a73fe11ea42205deaf54df0aa4b1ad9c
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapmvt.c
@@ -69,7 +69,7 @@ static double getTriangleHeight(lineObj *ring)
b = MS_MAX(b, msDistancePointToPoint(&ring->point[i], &ring->point[i+1]));
}

return (s/b);
return (MS_ABS(s/b));
}

static enum MS_RING_DIRECTION mvtGetRingDirection(lineObj *ring) {

0 comments on commit 1cec5bf

Please sign in to comment.
You can’t perform that action at this time.