Skip to content

Commit

Permalink
wxgui: fix exception in callback before label set
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus D. Leech authored and jmcorgan committed Jun 14, 2013
1 parent dbcba6e commit d51eab5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gr-wxgui/src/python/plotter/grid_plotter_base.py
Expand Up @@ -87,7 +87,10 @@ def set_point_label_coordinate(self, coor):
self.unlock()

def call_freq_callback(self, coor):
x, y = self._point_label_coordinate
try:
x, y = self._point_label_coordinate
except:
return
if x < self.padding_left or x > self.width-self.padding_right: return
if y < self.padding_top or y > self.height-self.padding_bottom: return
#scale to window bounds
Expand Down

0 comments on commit d51eab5

Please sign in to comment.