]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
better guarding when no printing architecture exists (patch from Joel Low)
[wxWidgets.git] / src / generic / grid.cpp
index a0c9646da923d0019532260c6b2aa0d7aa836134..bdd93204b5472c16cfe3bd21581fc03d63bac969 100644 (file)
@@ -10194,7 +10194,7 @@ void wxGrid::SetCellSize( int row, int col, int num_rows, int num_cols )
                       wxT("wxGrid::SetCellSize setting cell size to < 1"));
 
         // if this was already a multicell then "turn off" the other cells first
-        if ((cell_rows > 1) || (cell_rows > 1))
+        if ((cell_rows > 1) || (cell_cols > 1))
         {
             int i, j;
             for (j=row; j < row + cell_rows; j++)