mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
in load_map, fix type declaration for dx,dy as double
This commit is contained in:
parent
123182d0af
commit
8850d19bfc
@ -850,8 +850,8 @@ namespace mapnik
|
||||
throw config_error(std::string("Must have face_name or fontset_name"));
|
||||
}
|
||||
|
||||
int dx = get_attr(sym, "dx", 0.0);
|
||||
int dy = get_attr(sym, "dy", 0.0);
|
||||
double dx = get_attr(sym, "dx", 0.0);
|
||||
double dy = get_attr(sym, "dy", 0.0);
|
||||
text_symbol.set_displacement(dx,dy);
|
||||
|
||||
label_placement_e placement =
|
||||
@ -1034,8 +1034,8 @@ namespace mapnik
|
||||
throw config_error(std::string("Must have face_name or fontset_name"));
|
||||
}
|
||||
// text displacement
|
||||
int dx = get_attr(sym, "dx", 0.0);
|
||||
int dy = get_attr(sym, "dy", 0.0);
|
||||
double dx = get_attr(sym, "dx", 0.0);
|
||||
double dy = get_attr(sym, "dy", 0.0);
|
||||
shield_symbol.set_displacement(dx,dy);
|
||||
|
||||
label_placement_e placement =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user