Show wxHtmlCell address in its Dump()

This makes it easier to see which cell is which one when debugging.

Also use GetMaxTotalWidth() instead of GetWidth(), as the former is more
useful for container cells (and the same for the other ones).
This commit is contained in:
Vadim Zeitlin
2019-08-23 14:41:58 +02:00
parent 78c3ef2ebb
commit 57aa265862

View File

@@ -292,8 +292,9 @@ wxString wxHtmlCell::GetDescription() const
wxString wxHtmlCell::Dump(int indent) const
{
wxString s(' ', indent);
s += wxString::Format("%s at (%d, %d) %dx%d",
GetDescription(), m_PosX, m_PosY, m_Width, m_Height);
s += wxString::Format("%s(%p) at (%d, %d) %dx%d",
GetDescription(), this,
m_PosX, m_PosY, GetMaxTotalWidth(), m_Height);
if ( !m_id.empty() )
s += wxString::Format(" [id=%s]", m_id);