mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-03 02:27:08 -04:00
fixed compilation for computers where qreal is a float
This commit is contained in:
parent
5ffb54929c
commit
6a8b74c965
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ void RSGraphWidget::paintData()
|
||||||
if(_maxValue > 0.0f)
|
if(_maxValue > 0.0f)
|
||||||
{
|
{
|
||||||
if(_flags & RSGRAPH_FLAGS_LOG_SCALE_Y)
|
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
|
else
|
||||||
_y_scale = _rec.height()*0.8/_maxValue ;
|
_y_scale = _rec.height()*0.8/_maxValue ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue