# HG changeset patch # User Chris Cannam # Date 1540913525 0 # Node ID a1393b4384a5ba5d75ac3a5dc00d353a4cb7633f # Parent 7d28e7522dbdee2f8ce61ddb9c458de276567473 Minor tidying diff -r 7d28e7522dbd -r a1393b4384a5 layer/Colour3DPlotLayer.cpp --- 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); diff -r 7d28e7522dbd -r a1393b4384a5 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Tue Oct 30 15:32:01 2018 +0000 +++ b/layer/TimeValueLayer.cpp Tue Oct 30 15:32:05 2018 +0000 @@ -200,14 +200,14 @@ } else if (name == "Draw Segment Division Lines") { if (min) *min = 0; - if (max) *max = 0; + if (max) *max = 1; if (deflt) *deflt = 1; val = (m_drawSegmentDivisions ? 1.0 : 0.0); } else if (name == "Show Derivative") { if (min) *min = 0; - if (max) *max = 0; + if (max) *max = 1; if (deflt) *deflt = 0; val = (m_derivative ? 1.0 : 0.0);