Coordinates copying to clipboard on plot click fix

This commit is contained in:
Denvi
2016-07-17 20:21:55 +05:00
parent 0d808fe3cf
commit ba0b8a4162

View File

@@ -1600,7 +1600,7 @@ class App(QtCore.QObject):
# App.log.debug('button=%d, x=%d, y=%d, xdata=%f, ydata=%f' % (
# event.button, event.x, event.y, event.xdata, event.ydata))
self.clipboard.setText(self.defaults["point_clipboard_format"] % (event.pos[0], event.pos[1]))
self.clipboard.setText(self.defaults["point_clipboard_format"] % (pos[0], pos[1]))
except Exception, e:
App.log.debug("Outside plot?")