From 8b41f7d23add0bf16707337daaee1d74376d7886 Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 5 May 2017 13:24:07 -0400 Subject: cleanup code --- tksao/frame/baseellipse.C | 8 +++++--- 1 file 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); -- cgit v0.12