]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't divide by zero.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jun 2003 12:53:03 +0000 (12:53 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 4 Jun 2003 12:53:03 +0000 (12:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/fl/rowlayoutpl.cpp

index a1dd955c8ce058609905e0f016c9d4abcf6b1887..92af22e8622c6195ab1239aebfe36f08b9241c31 100644 (file)
@@ -433,6 +433,9 @@ void cbRowLayoutPlugin::ApplyLengthRatios( cbRowInfo* pRow )
     // look like total of mLetRatio's is 1.0, thus original
     // len. ratios are _preserved_:
 
+    if (pcntSum == 0.0)
+        pcntSum = 1.0;
+
     double unit = freeSpc / pcntSum;
 
     bool haveSquished = FALSE;