From 9375c73b1ce62dada2e58b9df1b108895ed383d6 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 15 Jun 2015 01:51:07 +0000 Subject: [PATCH] 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 --- echoplot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/echoplot.cpp b/echoplot.cpp index 0e225a5d3..704813e9b 100644 --- a/echoplot.cpp +++ b/echoplot.cpp @@ -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;