fix point_placement enum checking
This commit is contained in:
parent
d5bcf8dccb
commit
545960a340
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue