FIX: font of object list

Change-Id: Ifb198a8b6af89ee9a089d88d98d495821b5fce7e
This commit is contained in:
chunmao.guo 2022-08-05 18:39:02 +08:00 committed by Lane.Wei
parent b96ca57fde
commit 21d13646d8
5 changed files with 23 additions and 4 deletions

View file

@ -171,7 +171,10 @@ wxSize BitmapTextRenderer::GetSize() const
}
else
#endif // SUPPORTS_MARKUP && wxHAS_GENERIC_DATAVIEWCTRL
{
size = GetTextExtent(m_value.GetText());
size.x = size.x * 9 / 8;
}
if (m_value.GetBitmap().IsOk())
size.x += m_value.GetBitmap().GetWidth() + 4;