Skip to content

Commit

Permalink
Fixed bug causing incorrect pixel spectrum disply on double-click.
Browse files Browse the repository at this point in the history
  • Loading branch information
tboggs committed Feb 23, 2013
1 parent d2a118c commit c89c0b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions spectral/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# Spectral Python (SPy) package change log
################################################################################

2013-02-22 tboggs <[email protected]>

Fixed bug introduced by SPy 0.10 that caused incorrect spectrum to be
displayed when double-clicking a raster image.

* graphics/rasterwindow.py (RasterWindow.left_double_click): Incorrectly
had GetX() and GetY() reversed for double-click handler.

2013-02-17 tboggs <[email protected]>

Updated SPy version to 0.10
Expand Down
3 changes: 2 additions & 1 deletion spectral/graphics/rasterwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def paint(self, dc):
def left_double_click(self, evt):
from spectral import settings
if self.kwargs.has_key("data source"):
print '(%d,%d)' % (evt.GetY(), evt.GetX())
settings.plotter.plot(self.kwargs["data source"] \
[evt.GetX(), evt.GetY()], \
[evt.GetY(), evt.GetX()], \
source = self.kwargs["data source"])

0 comments on commit c89c0b7

Please sign in to comment.