diff options
-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); |