diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-06-25 13:51:38 +0200 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-06-25 13:51:38 +0200 |
| commit | 88555db930fc170f97ebbca6c17802392a5b5f25 (patch) | |
| tree | 029156b018ccaf4d72b4b1c24e45d50d2f3892ca /src/Panorama.cxx | |
| parent | bf376cf0a996b08c39f22d46ba68be4e7957777f (diff) | |
show stitching online
Diffstat (limited to 'src/Panorama.cxx')
| -rw-r--r-- | src/Panorama.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index b33a260..a644732 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -593,17 +593,17 @@ Panorama::get_coordinates(double a_view, double a_nick, int *x, int *y) { m.a_view = a_view - parms.a_center; - + if (m.a_view > pi_d) { m.a_view -= 2.0*pi_d; } else if (m.a_view < -pi_d) { m.a_view += 2.0*pi_d; } - if (m.a_view < view_angle && m.a_view > - view_angle) { + if (m.a_view > view_angle || m.a_view < - view_angle) { return 1; } - + m.a_nick = a_nick; proj->set_coordinates(&m, &parms); |
