[GRASS-SVN] r71780 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 19 12:43:53 PST 2017
Author: mmetz
Date: 2017-11-19 12:43:53 -0800 (Sun, 19 Nov 2017)
New Revision: 71780
Modified:
grass/trunk/lib/vector/diglib/inside.c
Log:
diglib: increase numerical stability
Modified: grass/trunk/lib/vector/diglib/inside.c
===================================================================
--- grass/trunk/lib/vector/diglib/inside.c 2017-11-19 20:04:29 UTC (rev 71779)
+++ grass/trunk/lib/vector/diglib/inside.c 2017-11-19 20:43:53 UTC (rev 71780)
@@ -26,7 +26,7 @@
/* assumes beg_y != end_y */
/* sort for numerical stability */
- if (end_y < beg_y) {
+ if (end_x < beg_x || (end_x == beg_x && end_y < beg_y)) {
b = end_x;
end_x = beg_x;
beg_x = b;
More information about the grass-commit
mailing list