set dimensions of svg

This commit is contained in:
Dane Springmeyer 2013-03-08 21:03:41 -08:00
parent b8de6e6f34
commit 210840721f

View file

@ -181,6 +181,7 @@ boost::optional<marker_ptr> marker_cache::find(std::string const& uri,
double lox,loy,hix,hiy;
svg.bounding_rect(&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));
result.reset(mark);
if (update_cache)