UnsavedChangesDialog :: Toggle column is on first place now

This commit is contained in:
YuSanka 2020-08-07 10:21:20 +02:00
parent e709c49e17
commit 08576ad746
3 changed files with 5 additions and 7 deletions

View file

@ -159,14 +159,14 @@ wxSize BitmapTextRenderer::GetSize() const
dc.SetFont(GetAttr().GetEffectiveFont(view->GetFont()));
size = m_markupText->Measure(dc);
int lines = m_value.GetText().Freq('\n') + 1;
size.SetHeight(size.GetHeight() * lines);
}
else
#endif // SUPPORTS_MARKUP && wxHAS_GENERIC_DATAVIEWCTRL
size = GetTextExtent(m_value.GetText());
int lines = m_value.GetText().Freq('\n') + 1;
size.SetHeight(size.GetHeight() * lines);
if (m_value.GetBitmap().IsOk())
size.x += m_value.GetBitmap().GetWidth() + 4;
return size;