mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Color legend range: Do not round values if min and max is identical
If min and max is identical, keep the original value. This will ensure that a discrete legend contains only one level.
This commit is contained in:
1 parent
56ad4b1888
commit
533b0805c0
2 files changed
+20
-18
No files matched your search
@@ -213,7 +213,6 @@ static double adjust(double domainValue, double decadeValue, unsigned int decade
|
||||
void ScalarMapperRangeBased::majorTickValues( std::vector<double>* domainValues) const
|
||||
{
|
||||
CVF_ASSERT(domainValues != NULL);
|
||||
CVF_ASSERT(m_rangeMin != cvf::UNDEFINED_DOUBLE && m_rangeMax != cvf::UNDEFINED_DOUBLE);
|
||||
|
||||
if (m_userDefinedLevelValues.empty())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user