[GRASS-SVN] r32659 - grass/trunk/lib/display
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 9 21:00:46 EDT 2008
Author: glynn
Date: 2008-08-09 21:00:46 -0400 (Sat, 09 Aug 2008)
New Revision: 32659
Modified:
grass/trunk/lib/display/draw2.c
Log:
Update point count from return value of do_convert
Modified: grass/trunk/lib/display/draw2.c
===================================================================
--- grass/trunk/lib/display/draw2.c 2008-08-09 21:34:48 UTC (rev 32658)
+++ grass/trunk/lib/display/draw2.c 2008-08-10 01:00:46 UTC (rev 32659)
@@ -103,7 +103,6 @@
xi[i] = xi[j];
yi[i] = yi[j];
}
-
return i + 1;
}
@@ -512,7 +511,7 @@
j++;
}
- do_convert(xf, yf, n);
+ n = do_convert(xf, yf, n);
R_polydots_abs(xi, yi, j);
}
@@ -586,7 +585,7 @@
dealloc_src(&x, &y, 1);
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polyline_abs(xi, yi, n);
}
@@ -696,7 +695,7 @@
dealloc_src(&x, &y, 1);
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polygon_abs(xi, yi, n);
}
@@ -776,7 +775,7 @@
dealloc_src(&x, &y, 1);
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polygon_abs(xi, yi, n);
}
@@ -876,19 +875,19 @@
void D_polydots(const double *x, const double *y, int n)
{
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polydots_abs(xi, yi, n);
}
void D_polyline(const double *x, const double *y, int n)
{
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polyline_abs(xi, yi, n);
}
void D_polygon(const double *x, const double *y, int n)
{
- do_convert(x, y, n);
+ n = do_convert(x, y, n);
R_polygon_abs(xi, yi, n);
}
More information about the grass-commit
mailing list