mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix Ubuntu build (#2696)
* std::ceil -> cvf::Math::ceil to avoid header issues.
This commit is contained in:
parent
ab736ab46b
commit
dd38543dd2
@ -674,7 +674,7 @@ void OverlayScalarMapperLegend::computeLayoutAndExtents(const Vec2i& position, c
|
|||||||
float maxLegendRightPos = 0;
|
float maxLegendRightPos = 0;
|
||||||
setupTextDrawer(m_textDrawer.p(), &m_Layout, &maxLegendRightPos);
|
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);
|
this->setMinimumWidth(contentWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user