summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-02-28 18:22:28 (GMT)
committerGitHub <noreply@github.com>2019-02-28 18:22:28 (GMT)
commita432bcd259e6df73a7729e35e477a5c5d5775ceb (patch)
treeb93077504fcd5d384d42c98bfc1fa8dd3ec53d23
parentff6a984bb2e41fc041faa2139f9bd5d0ce89936a (diff)
downloadblt-a432bcd259e6df73a7729e35e477a5c5d5775ceb.zip
blt-a432bcd259e6df73a7729e35e477a5c5d5775ceb.tar.gz
blt-a432bcd259e6df73a7729e35e477a5c5d5775ceb.tar.bz2
Update tkbltGrPSOutput.Cv3.2.15
-rw-r--r--generic/tkbltGrPSOutput.C8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkbltGrPSOutput.C b/generic/tkbltGrPSOutput.C
index 07d4864..01a3101 100644
--- a/generic/tkbltGrPSOutput.C
+++ b/generic/tkbltGrPSOutput.C
@@ -161,10 +161,10 @@ void PSOutput::computeBBox(int width, int height)
vSize + vBorder;
// Scale the plot size if it's bigger than the paper
- double hScale = (hSize+hBorder) > paperWidth ? 1.0 :
- paperWidth - hBorder / hSize;
- double vScale = (vSize + vBorder) > paperHeight ? 1.0 :
- paperHeight - vBorder / vSize;
+ double hScale = (hSize+hBorder)>paperWidth ? (paperWidth-hBorder)/hSize
+ : 1.0;
+ double vScale = (vSize+vBorder)>paperHeight ? (paperHeight-vBorder)/vSize
+ : 1.0;
double scale = MIN(hScale, vScale);
if (scale != 1.0) {