mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2696 Fix ubuntu build after Legend updates.
* Was missing <cmath> to get std::ceil, but cvf::Math also has ceil, so switch to that.
This commit is contained in:
parent
fee549de35
commit
b488d99f81
@ -505,7 +505,7 @@ void CategoryLegend::computeLayoutAndExtents(const Vec2i& position, const Vec2ui
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user