mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
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:
parent
a6a9dcc68b
commit
9375c73b1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user