From dd38543dd2e76f2a93b287b82b119675caef9309 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Tue, 10 Apr 2018 08:31:03 +0200 Subject: [PATCH] Fix Ubuntu build (#2696) * std::ceil -> cvf::Math::ceil to avoid header issues. --- Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp b/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp index 3a25a58c8f..c2a305c9ec 100644 --- a/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp +++ b/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp @@ -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(std::ceil(maxLegendRightPos + m_Layout.margins.x())); + unsigned int contentWidth = static_cast(cvf::Math::ceil(maxLegendRightPos + m_Layout.margins.x())); this->setMinimumWidth(contentWidth); }