From fcede292ccd46c98eebcf359797f7b29ac376e4a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 4 Jun 2003 12:53:03 +0000 Subject: [PATCH] Don't divide by zero. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/fl/rowlayoutpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/src/fl/rowlayoutpl.cpp b/contrib/src/fl/rowlayoutpl.cpp index a1dd955c8c..a96119f34a 100644 --- a/contrib/src/fl/rowlayoutpl.cpp +++ b/contrib/src/fl/rowlayoutpl.cpp @@ -456,6 +456,9 @@ void cbRowLayoutPlugin::ApplyLengthRatios( cbRowInfo* pRow ) } } // for + if (pcntSum == 0.0) + pcntSum = 1.0; + if ( haveSquished ) unit = freeSpc / pcntSum;