minimum acceptable row size.
This should fix sf.net bug #645734
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20661
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxCHECK_RET( row >= 0 && row < m_numRows, _T("invalid row index") );
{
wxCHECK_RET( row >= 0 && row < m_numRows, _T("invalid row index") );
+ // See comment in SetColSize
+ if ( height < GetRowMinimalAcceptableHeight()) { return; }
if ( m_rowHeights.IsEmpty() )
{
if ( m_rowHeights.IsEmpty() )
{
wxCHECK_RET( col >= 0 && col < m_numCols, _T("invalid column index") );
// should we check that it's bigger than GetColMinimalWidth(col) here?
wxCHECK_RET( col >= 0 && col < m_numCols, _T("invalid column index") );
// should we check that it's bigger than GetColMinimalWidth(col) here?
+ // (VZ)
+ // No, because it is reasonable to assume the library user know's
+ // what he is doing. However whe should test against the weaker
+ // constariant of minimalAcceptableWidth, as this breaks rendering
+ //
+ // This test then fixes sf.net bug #645734
+
+ if ( width < GetColMinimalAcceptableWidth()) { return; }
+
if ( m_colWidths.IsEmpty() )
{
// need to really create the array
if ( m_colWidths.IsEmpty() )
{
// need to really create the array