correct text extent to not require active painter
This commit is contained in:
parent
cc01fbc3c0
commit
988bc8b306
1 changed files with 3 additions and 1 deletions
|
|
@ -347,9 +347,11 @@ void wxQtDCImpl::DoGetTextExtent(const wxString& string,
|
|||
wxCoord *externalLeading,
|
||||
const wxFont *theFont ) const
|
||||
{
|
||||
QFont f = m_qtPainter->font();
|
||||
QFont f;
|
||||
if (theFont != NULL)
|
||||
f = theFont->GetHandle();
|
||||
else
|
||||
f = m_font.GetHandle();
|
||||
|
||||
QFontMetrics metrics(f);
|
||||
if (x != NULL || y != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue