fixup compile of cairo rendering backend after r2248

This commit is contained in:
Dane Springmeyer 2010-09-28 18:27:42 +00:00
parent 69221d1438
commit 49e6fa4480

View file

@ -842,7 +842,7 @@ void cairo_renderer_base::process(shield_symbolizer const& sym,
double label_x; double label_x;
double label_y; double label_y;
double z = 0.0; double z = 0.0;
placement text_placement(info, sym, w, h, false); placement text_placement(info, sym, 1.0, w, h, false);
text_placement.avoid_edges = sym.get_avoid_edges(); text_placement.avoid_edges = sym.get_avoid_edges();
geom.label_position(&label_x, &label_y); geom.label_position(&label_x, &label_y);
@ -885,7 +885,7 @@ void cairo_renderer_base::process(shield_symbolizer const& sym,
} }
else if (geom.num_points() > 1 && sym.get_label_placement() == LINE_PLACEMENT) else if (geom.num_points() > 1 && sym.get_label_placement() == LINE_PLACEMENT)
{ {
placement text_placement(info, sym, w, h, true); placement text_placement(info, sym, 1.0, w, h, true);
text_placement.avoid_edges = sym.get_avoid_edges(); text_placement.avoid_edges = sym.get_avoid_edges();
finder.find_point_placements<path_type>(text_placement, path); finder.find_point_placements<path_type>(text_placement, path);
@ -1208,7 +1208,7 @@ void cairo_renderer_base::process(text_symbolizer const& sym,
if (geom.num_points() > 0) // don't bother with empty geometries if (geom.num_points() > 0) // don't bother with empty geometries
{ {
path_type path(t_, geom, prj_trans); path_type path(t_, geom, prj_trans);
placement text_placement(info, sym); placement text_placement(info, sym, 1.0);
if (sym.get_label_placement() == POINT_PLACEMENT) if (sym.get_label_placement() == POINT_PLACEMENT)
{ {