# HG changeset patch # User Chris Cannam # Date 1433942875 -3600 # Node ID bc23c2cfff65112d2ed31ee870aff45e5fcae079 # Parent 1011ffb1b6d5f67588f997d7a68fefed002886ae Rounding diff -r 1011ffb1b6d5 -r bc23c2cfff65 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Wed Jun 10 13:38:02 2015 +0100 +++ b/layer/Colour3DPlotLayer.cpp Wed Jun 10 14:27:55 2015 +0100 @@ -869,7 +869,7 @@ paint.save(); QFont font = paint.font(); - font.setPixelSize(font.pixelSize() * 0.65); + font.setPixelSize(int(font.pixelSize() * 0.65)); paint.setFont(font); int msw = paint.fontMetrics().width(maxstr); @@ -920,7 +920,7 @@ if (paint.fontMetrics().height() >= h) { if (h >= defaultFontHeight * 0.8) { QFont tf = paint.font(); - tf.setPixelSize(h * 0.8); + tf.setPixelSize(int(h * 0.8)); paint.setFont(tf); } else { continue;