From 095e27e5a9b983b7a20ea6bc4b9f4989ddb9a160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Medra=C3=B1o=20Calvo?= Date: Thu, 20 Jul 2017 13:05:46 +0200 Subject: Use double for comparing with GraphOption's aspect --- generic/tkbltGraphSup.C | 4 ++-- 1 file 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); -- cgit v0.12