diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-20 11:05:46 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-21 11:40:48 (GMT) |
commit | 095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160 (patch) | |
tree | 50a13ebf32560a7e11a569c4adc9d51414e8979b /generic/tkbltGraphSup.C | |
parent | 9ffae9ee8f52d1560137c37d610b12c8335d167d (diff) | |
download | blt-095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160.zip blt-095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160.tar.gz blt-095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160.tar.bz2 |
Use double for comparing with GraphOption's aspect
Diffstat (limited to 'generic/tkbltGraphSup.C')
-rw-r--r-- | generic/tkbltGraphSup.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkbltGraphSup.C b/generic/tkbltGraphSup.C index a461e1f..d5eb3d1 100644 --- a/generic/tkbltGraphSup.C +++ b/generic/tkbltGraphSup.C @@ -244,11 +244,11 @@ void Graph::layoutGraph() // If necessary, correct for the requested plot area aspect ratio. if ((ops->reqPlotWidth == 0) && (ops->reqPlotHeight == 0) && (ops->aspect > 0.0)) { - float ratio; + double ratio; // Shrink one dimension of the plotarea to fit the requested // width/height aspect ratio. - ratio = (float)plotWidth / (float)plotHeight; + ratio = plotWidth / plotHeight; if (ratio > ops->aspect) { // Shrink the width int scaledWidth = (int)(plotHeight * ops->aspect); |