diff options
author | joye <joye> | 2014-05-06 19:17:43 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-06 19:17:43 (GMT) |
commit | b1eecfc9f2e6f937046026e9dc28f0cc89540d29 (patch) | |
tree | 1c24af1d71208efd0b3709bd832aade957c4d7ba /src/bltGraphSup.C | |
parent | 1360c7c2d78abaee4185a2d4a9a5fabf36a42c70 (diff) | |
download | blt-b1eecfc9f2e6f937046026e9dc28f0cc89540d29.zip blt-b1eecfc9f2e6f937046026e9dc28f0cc89540d29.tar.gz blt-b1eecfc9f2e6f937046026e9dc28f0cc89540d29.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGraphSup.C')
-rw-r--r-- | src/bltGraphSup.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bltGraphSup.C b/src/bltGraphSup.C index 3ac2b6c..34bc4ad 100644 --- a/src/bltGraphSup.C +++ b/src/bltGraphSup.C @@ -39,7 +39,6 @@ using namespace Blt; -#define ROUND(x) ((int)((x) + (((x)<0.0) ? -0.5 : 0.5))) #define AXIS_PAD_TITLE 2 #define ROTATE_0 0 #define ROTATE_90 1 @@ -538,7 +537,8 @@ void Graph::getAxisGeometry(Axis *axisPtr) // Rotated label width and height double rlw, rlh; getBoundingBox(lw, lh, aops->tickAngle, &rlw, &rlh, NULL); - lw = ROUND(rlw), lh = ROUND(rlh); + lw = rlw; + lh = rlh; } if (axisPtr->maxTickWidth_ < int(lw)) axisPtr->maxTickWidth_ = lw; @@ -549,8 +549,8 @@ void Graph::getAxisGeometry(Axis *axisPtr) unsigned int pad =0; if (aops->exterior) { - /* Because the axis cap style is "CapProjecting", we need to - * account for an extra 1.5 linewidth at the end of each line. */ + // Because the axis cap style is "CapProjecting", we need to + // account for an extra 1.5 linewidth at the end of each line pad = ((aops->lineWidth * 12) / 8); } if (axisPtr->isHorizontal()) |