X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d2474f486c894c2bd32d8b19077a026b2fc2b53..eccd1992237c9b8bbe02a9eda66b709fd7ecea73:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index a711c7b0c2..3ba28288ec 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -914,6 +914,8 @@ wxGridSizer::wxGridSizer( int rows, int cols, int vgap, int hgap ) , m_vgap( vgap ) , m_hgap( hgap ) { + if (m_rows == 0 && m_cols == 0) + m_rows = 1; } wxGridSizer::wxGridSizer( int cols, int vgap, int hgap ) @@ -922,6 +924,8 @@ wxGridSizer::wxGridSizer( int cols, int vgap, int hgap ) , m_vgap( vgap ) , m_hgap( hgap ) { + if (m_rows == 0 && m_cols == 0) + m_rows = 1; } int wxGridSizer::CalcRowsCols(int& nrows, int& ncols) const