Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.cpp @ 1365:a1393b4384a5
Minor tidying
author | Chris Cannam |
---|---|
date | Tue, 30 Oct 2018 15:32:05 +0000 |
parents | d79e21855aef |
children | f08a3b8cdb9d |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Tue Oct 30 15:32:01 2018 +0000 +++ b/layer/Colour3DPlotLayer.cpp Tue Oct 30 15:32:05 2018 +0000 @@ -303,12 +303,18 @@ { if (name == "Normalization" || name == "Colour Scale" || - name == "Gain") return tr("Scale"); + name == "Gain") { + return tr("Scale"); + } if (name == "Bin Scale" || - name == "Invert Vertical Scale") return tr("Bins"); + name == "Invert Vertical Scale") { + return tr("Bins"); + } if (name == "Opaque" || name == "Smooth" || - name == "Colour") return tr("Colour"); + name == "Colour") { + return tr("Colour"); + } return QString(); } @@ -362,7 +368,9 @@ val = convertFromColumnNorm(m_normalization, m_normalizeVisibleArea); } else if (name == "Invert Vertical Scale") { - + + *min = 0; + *max = 1; *deflt = 0; val = (m_invertVertical ? 1 : 0); @@ -375,11 +383,15 @@ } else if (name == "Opaque") { + *min = 0; + *max = 1; *deflt = 0; val = (m_opaque ? 1 : 0); } else if (name == "Smooth") { + *min = 0; + *max = 1; *deflt = 0; val = (m_smooth ? 1 : 0);