From 6a8b74c965311405012017dbb7a84498244ac415 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 15 Jul 2017 22:00:35 +0200 Subject: [PATCH] fixed compilation for computers where qreal is a float --- retroshare-gui/src/gui/common/RSGraphWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/common/RSGraphWidget.cpp b/retroshare-gui/src/gui/common/RSGraphWidget.cpp index ef129809c..8bafec87f 100644 --- a/retroshare-gui/src/gui/common/RSGraphWidget.cpp +++ b/retroshare-gui/src/gui/common/RSGraphWidget.cpp @@ -437,7 +437,7 @@ void RSGraphWidget::paintData() if(_maxValue > 0.0f) { if(_flags & RSGRAPH_FLAGS_LOG_SCALE_Y) - _y_scale = _rec.height()*0.8 / log(std::max(2.0,_maxValue)) ; + _y_scale = _rec.height()*0.8 / log(std::max((qreal)2.0,(qreal)_maxValue)) ; else _y_scale = _rec.height()*0.8/_maxValue ; }