Fix Ubuntu build (#2696)

* std::ceil -> cvf::Math::ceil to avoid header issues.
This commit is contained in:
Gaute Lindkvist 2018-04-10 08:31:03 +02:00
parent ab736ab46b
commit dd38543dd2

View File

@ -674,7 +674,7 @@ void OverlayScalarMapperLegend::computeLayoutAndExtents(const Vec2i& position, c
float maxLegendRightPos = 0;
setupTextDrawer(m_textDrawer.p(), &m_Layout, &maxLegendRightPos);
unsigned int contentWidth = static_cast<unsigned int>(std::ceil(maxLegendRightPos + m_Layout.margins.x()));
unsigned int contentWidth = static_cast<unsigned int>(cvf::Math::ceil(maxLegendRightPos + m_Layout.margins.x()));
this->setMinimumWidth(contentWidth);
}