Remove the unused, unnecessary "position" from several methods and the overlay layout struct

This commit is contained in:
Jacob Støren
2018-04-20 10:13:43 +02:00
parent b102b3025a
commit 1f8d4437bf
9 changed files with 20 additions and 24 deletions

View File

@@ -371,7 +371,7 @@ void RimRegularLegendConfig::updateLegend()
numDecimalDigits -= static_cast<int>(decadesInRange);
}
m_scalarMapperLegend->setTickPrecision(cvf::Math::clamp(numDecimalDigits, 0, 20));
m_scalarMapperLegend->computeLayoutAndExtents(cvf::Vec2i(0, 0), m_scalarMapperLegend->sizeHint());
m_scalarMapperLegend->computeLayoutAndExtents( m_scalarMapperLegend->sizeHint());
RiaApplication* app = RiaApplication::instance();
RiaPreferences* preferences = app->preferences();