Fix some compilation warnings

This commit is contained in:
hopetech 2016-10-19 15:41:25 +02:00
parent 0e1fad0ff7
commit ecaea051fa
5 changed files with 7 additions and 5 deletions

View file

@ -393,10 +393,12 @@ void RSGraphWidget::paintData()
paintLine(points, getColor(i));
}
if(_maxValue > 0.0f)
{
if(_flags & RSGRAPH_FLAGS_LOG_SCALE_Y)
_y_scale = _rec.height()*0.8 / log(_maxValue) ;
else
_y_scale = _rec.height()*0.8/_maxValue ;
}
}
/** Returns a list of points on the bandwidth graph based on the supplied set