mirror of https://github.com/CGAL/cgal
fix text items not displayed entirely
This commit is contained in:
parent
4b66010b75
commit
f08f69e745
|
|
@ -60,7 +60,7 @@ public :
|
|||
:x(p_x), y(p_y), z(p_z),_3D(p_3D), _is_always_visible(always_visible), m_text(p_text), m_font(font), m_color(p_color)
|
||||
{
|
||||
QFontMetrics fm(m_font);
|
||||
_width = float(fm.width(m_text));
|
||||
_width = float(fm.horizontalAdvance(m_text)+2);
|
||||
_height = float(fm.height());
|
||||
}
|
||||
//!\brief Accessor for the string
|
||||
|
|
|
|||
Loading…
Reference in New Issue