diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-02-28 18:17:33 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-02-28 18:17:33 (GMT) |
commit | 1309dfe1e4651edfe99d3dead5a9da7149c984d0 (patch) | |
tree | fd04464ccb1cbaf7e4445abaecea1da967c17532 /tkblt | |
parent | ea20a2c5494f33322cdf00f2e76924eb5d7ec783 (diff) | |
download | blt-1309dfe1e4651edfe99d3dead5a9da7149c984d0.zip blt-1309dfe1e4651edfe99d3dead5a9da7149c984d0.tar.gz blt-1309dfe1e4651edfe99d3dead5a9da7149c984d0.tar.bz2 |
fix ps boundingbox
Diffstat (limited to 'tkblt')
-rw-r--r-- | tkblt/generic/tkbltGrPSOutput.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tkblt/generic/tkbltGrPSOutput.C b/tkblt/generic/tkbltGrPSOutput.C index 07d4864..01a3101 100644 --- a/tkblt/generic/tkbltGrPSOutput.C +++ b/tkblt/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) { |