git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45578 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
         // and now fill it with the largest value
         for ( n = 0; n < count; ++n )
         {
         // and now fill it with the largest value
         for ( n = 0; n < count; ++n )
         {
+            // don't touch hidden rows
+            if ( array[n] != -1 )
+                array[n] = largest;
             {
                 if (m_growableRows[idx] >= nrows )
                     continue;
             {
                 if (m_growableRows[idx] >= nrows )
                     continue;
-                if (m_rowHeights[ m_growableRows[idx] ] == -1)
-                    m_rowHeights[ m_growableRows[idx] ] = 0;
-                else
+                if (m_rowHeights[ m_growableRows[idx] ] != -1)
                 {
                     int delta = (sz.y - minsz.y);
                     if (sum_proportions == 0)
                 {
                     int delta = (sz.y - minsz.y);
                     if (sum_proportions == 0)
             {
                 if (m_growableCols[idx] >= ncols )
                     continue;
             {
                 if (m_growableCols[idx] >= ncols )
                     continue;
-                if (m_colWidths[ m_growableCols[idx] ] == -1)
-                    m_colWidths[ m_growableCols[idx] ] = 0;
-                else
+                if (m_colWidths[ m_growableCols[idx] ] != -1)
                 {
                     int delta = (sz.x - minsz.x);
                     if (sum_proportions == 0)
                 {
                     int delta = (sz.x - minsz.x);
                     if (sum_proportions == 0)