fix marker bbox calculation - closes #1849

This commit is contained in:
Dane Springmeyer 2013-05-20 12:05:13 -07:00
parent 735363c47d
commit 29578410c2

View file

@ -100,17 +100,25 @@ public:
inline double width() const inline double width() const
{ {
if (is_bitmap()) if (is_bitmap())
{
return (*bitmap_data_)->width(); return (*bitmap_data_)->width();
}
else if (is_vector()) else if (is_vector())
return (*vector_data_)->width(); {
return (*vector_data_)->bounding_box().width();
}
return 0; return 0;
} }
inline double height() const inline double height() const
{ {
if (is_bitmap()) if (is_bitmap())
{
return (*bitmap_data_)->height(); return (*bitmap_data_)->height();
}
else if (is_vector()) else if (is_vector())
return (*vector_data_)->height(); {
return (*vector_data_)->bounding_box().height();
}
return 0; return 0;
} }