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:
Magne Sjaastad committed 2023-08-17 07:02:26 +02:00
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())
{