Don't divide by zero.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-04 12:53:03 +00:00
parent b6d5d4548c
commit 8ca3dfcdfa

View File

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