Don't take hidden wxGrid row/columns into account when auto-sizing.

The contents not shown to the user shouldn't affect the fitting width/height
of the columns/rows that are shown.

See #15464.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-09-04 00:14:15 +00:00
parent c7ea5a0c7e
commit 1c467e8804

View File

@@ -8398,11 +8398,17 @@ wxGrid::AutoSizeColOrRow(int colOrRow, bool setAsMin, wxGridDirection direction)
{ {
if ( column ) if ( column )
{ {
if ( !IsRowShown(rowOrCol) )
continue;
row = rowOrCol; row = rowOrCol;
col = colOrRow; col = colOrRow;
} }
else else
{ {
if ( !IsColShown(rowOrCol) )
continue;
row = colOrRow; row = colOrRow;
col = rowOrCol; col = rowOrCol;
} }