diff options
author | jcorgan | 2008-04-26 03:26:58 +0000 |
---|---|---|
committer | jcorgan | 2008-04-26 03:26:58 +0000 |
commit | d8e2641775a0ceb4fa388c59968a75509250d923 (patch) | |
tree | 8d3a5fd2a4b0751658620ad878ef855d82a3d5f8 /gr-wxgui/src/python/fftsink2.py | |
parent | 5eefec8efb22a15bb6f127f83214fdf11a626e06 (diff) | |
download | gnuradio-d8e2641775a0ceb4fa388c59968a75509250d923.tar.gz gnuradio-d8e2641775a0ceb4fa388c59968a75509250d923.tar.bz2 gnuradio-d8e2641775a0ceb4fa388c59968a75509250d923.zip |
Fix race on startup in fftsink2 (Josh Blum)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8279 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/fftsink2.py')
-rwxr-xr-x | gr-wxgui/src/python/fftsink2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/fftsink2.py b/gr-wxgui/src/python/fftsink2.py index c3df18d25..61906bfa1 100755 --- a/gr-wxgui/src/python/fftsink2.py +++ b/gr-wxgui/src/python/fftsink2.py @@ -374,7 +374,10 @@ class fft_window (plot.PlotCanvas): self.PopupMenu(menu, event.GetPosition()) def evt_motion(self, event): - # Clip to plotted values + if not hasattr(self, "_points"): + return # Got here before first window data update + + # Clip to plotted values (ux, uy) = self.GetXY(event) # Scaled position x_vals = numpy.array(self._points[:,0]) if ux < x_vals[0] or ux > x_vals[-1]: |