summaryrefslogtreecommitdiffstats
path: root/tksao/frame
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-05-05 17:24:07 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-05-05 17:24:07 (GMT)
commit8b41f7d23add0bf16707337daaee1d74376d7886 (patch)
tree2bc0b5e92176eb5584e7ef10700691f340a6495e /tksao/frame
parent9ec6e3feb91635a1c1d89203c37aac0b6f91331e (diff)
downloadblt-8b41f7d23add0bf16707337daaee1d74376d7886.zip
blt-8b41f7d23add0bf16707337daaee1d74376d7886.tar.gz
blt-8b41f7d23add0bf16707337daaee1d74376d7886.tar.bz2
cleanup code
Diffstat (limited to 'tksao/frame')
-rw-r--r--tksao/frame/baseellipse.C8
1 files changed, 5 insertions, 3 deletions
diff --git a/tksao/frame/baseellipse.C b/tksao/frame/baseellipse.C
index 43ccff4..11fc946 100644
--- a/tksao/frame/baseellipse.C
+++ b/tksao/frame/baseellipse.C
@@ -54,12 +54,14 @@ void BaseEllipse::renderX(Drawable drawable, Coord::InternalSystem sys,
parent->getWCSOrientation() == Coord::NORMAL;
int isRound = r[0] == r[1];
int isScale = z[0] == z[1];
- int isAng0 = teq(ang,0,FLT_EPSILON)||teq(ang,M_PI,FLT_EPSILON);
- int is360 = teq(startAng_,0,FLT_EPSILON)&&teq(stopAng_,M_TWOPI,FLT_EPSILON);
+ int isAngle = teq(ang,0,FLT_EPSILON) ||
+ teq(ang,M_PI,FLT_EPSILON);
+ int is360 = teq(startAng_,0,FLT_EPSILON) &&
+ teq(stopAng_,M_TWOPI,FLT_EPSILON);
if (isRound && isScale && isOrient && parent->isAzElZero())
renderXCircle(drawable, sys, ang, mode);
- else if (isAng0 && is360 && parent->isAzElZero())
+ else if (isAngle && is360 && parent->isAzElZero())
renderXEllipse(drawable, sys, ang, mode);
else
renderXBezier(drawable, sys, mode);