Avoid division by zero when analyzing ~5000 words
commit9e6040b9b208f9deb85f9ff594a8be00feaed9fd
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 20 Jul 2010 04:07:23 +0000 (20 04:07 +0000)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 20 Jul 2010 04:07:23 +0000 (20 04:07 +0000)
treea21574b0db4223e70a02feeedd7d19fe2e50cbbd
parent5ce6ff4f0d6dfc8a0f0cb97cd9b7da40edbc9481
Avoid division by zero when analyzing ~5000 words

r2046 (Avoid a function call for most status updates, 2010-06-11)
did not take into account that the range of possible values for
the status bar might have zero width.

Thanks to John for the report.

git-svn-id: svn+ssh://clownfish.uchicago.edu/Volumes/Behemoth/svn/linguistica/Trunk@2052 94adc35a-e818-0410-82ae-8e236d748f55
gui/Status.cpp