Fixed compiler warning (double to float).

This commit is contained in:
hiker 2014-11-26 22:27:35 +11:00
parent bf79df9e88
commit 45b19997de

View File

@ -107,7 +107,8 @@ void IconButtonWidget::add()
if (m_properties[PROP_CUSTOM_RATIO] != "")
{
m_custom_aspect_ratio = atof(m_properties[PROP_CUSTOM_RATIO].c_str());
StringUtils::fromString(m_properties[PROP_CUSTOM_RATIO],
m_custom_aspect_ratio);
m_scale_mode = SCALE_MODE_KEEP_CUSTOM_ASPECT_RATIO;
}