fix marker bbox calculation - closes #1849
This commit is contained in:
parent
735363c47d
commit
29578410c2
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue