formatting

This commit is contained in:
Dane Springmeyer 2009-08-11 01:22:08 +00:00
parent a5174cd3c1
commit 65066f604f

View file

@ -37,9 +37,9 @@
namespace mapnik { namespace mapnik {
enum GeomType { enum GeomType {
Point = 1, Point = 1,
LineString = 2, LineString = 2,
Polygon = 3 Polygon = 3
}; };
template <typename T> template <typename T>
@ -55,7 +55,7 @@ namespace mapnik {
{ {
Envelope<double> result; Envelope<double> result;
double x,y; double x,y;
rewind(0); rewind(0);
for (unsigned i=0;i<num_points();++i) for (unsigned i=0;i<num_points();++i)
{ {
vertex(&x,&y); vertex(&x,&y);
@ -277,7 +277,6 @@ namespace mapnik {
} }
else if (size == 2) else if (size == 2)
{ {
cont_.get_vertex(0,&x0,&y0); cont_.get_vertex(0,&x0,&y0);
cont_.get_vertex(1,&x1,&y1); cont_.get_vertex(1,&x1,&y1);
*x = 0.5 * (x1 + x0); *x = 0.5 * (x1 + x0);