Guard against divide by 0 in case of certain possible upgrade paths.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5615 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-15 01:51:07 +00:00
parent a6a9dcc68b
commit 9375c73b1c

View File

@ -93,6 +93,7 @@ void EPlotter::draw() //draw()
QPen penBlue(QColor(0,255,255),1);
QPen penRed(Qt::red,1);
if(m_binsPerPixel==0) m_binsPerPixel=1;
j=0;
for(i=0; i<4096/m_binsPerPixel; i++) {
blue[i]=0.0;