set dimensions of svg
This commit is contained in:
parent
b8de6e6f34
commit
210840721f
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ boost::optional<marker_ptr> marker_cache::find(std::string const& uri,
|
||||||
double lox,loy,hix,hiy;
|
double lox,loy,hix,hiy;
|
||||||
svg.bounding_rect(&lox, &loy, &hix, &hiy);
|
svg.bounding_rect(&lox, &loy, &hix, &hiy);
|
||||||
marker_path->set_bounding_box(lox,loy,hix,hiy);
|
marker_path->set_bounding_box(lox,loy,hix,hiy);
|
||||||
|
marker_path->set_dimensions(svg.width(),svg.height());
|
||||||
marker_ptr mark(boost::make_shared<marker>(marker_path));
|
marker_ptr mark(boost::make_shared<marker>(marker_path));
|
||||||
result.reset(mark);
|
result.reset(mark);
|
||||||
if (update_cache)
|
if (update_cache)
|
||||||
|
|
Loading…
Reference in a new issue