mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed compilation for computers where qreal is a float
This commit is contained in:
parent
5ffb54929c
commit
6a8b74c965
@ -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 ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user