fix point_placement enum checking

This commit is contained in:
Dane Springmeyer 2011-02-24 18:05:07 +00:00
parent d5bcf8dccb
commit 545960a340
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ void agg_renderer<T>::process(point_symbolizer const& sym,
double x;
double y;
double z=0;
if (sym.get_point_placement() == POINT_PLACEMENT)
if (sym.get_point_placement() == CENTROID_POINT_PLACEMENT)
geom.label_position(&x, &y);
else
geom.label_interior_position(&x, &y);

View file

@ -1033,7 +1033,7 @@ void cairo_renderer_base::process(point_symbolizer const& sym,
double y;
double z = 0;
if (sym.get_point_placement() == POINT_PLACEMENT)
if (sym.get_point_placement() == CENTROID_POINT_PLACEMENT)
geom.label_position(&x, &y);
else
geom.label_interior_position(&x, &y);