summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 17:13:41 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 17:13:41 +0200
commit33fbaf7198781e12a7bfb61c45a795b794933dac (patch)
treee15d7671a472d50cf3a34c6f13cd18824207b034 /src
parent0b787cb933393fb86f942769d91bbbb8b921b064 (diff)
style
Diffstat (limited to 'src')
-rw-r--r--src/ProjectionLSQ.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ProjectionLSQ.cxx b/src/ProjectionLSQ.cxx
index d486fe2..6685f0f 100644
--- a/src/ProjectionLSQ.cxx
+++ b/src/ProjectionLSQ.cxx
@@ -245,11 +245,10 @@ ProjectionLSQ::get_coordinates(double alph, double a_nick,
const ViewParams *parms, double *x, double *y) {
// Normalize alph - parms->a_center to [-pi/2, pi/2]
- if (alph - parms->a_center > pi) {
+ if (alph - parms->a_center > pi)
alph -= 2.0 * pi;
- } else if (alph - parms->a_center < -pi) {
+ else if (alph - parms->a_center < -pi)
alph += 2.0 * pi;
- }
*x = mac_x(parms->a_center, parms->a_nick, parms->a_tilt, parms->scale,
parms->k0, parms->k1, parms->x0, alph, a_nick);