Commit 928bb5bd authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq

I was doing more testing, and the range on the sliders needs to be expanded...

I was doing more testing, and the range on the sliders needs to be expanded just slightly so that it includes all the data.
parent a55bfd0d
......@@ -360,15 +360,15 @@ void StarProfileViewer::updateScale()
float min, max;
getSubFrameMinMax(&subFrameMin, &subFrameMax, &dataMin, &dataMax);
int sliderDataMin = convertToSliderValue(dataMin);
int sliderDataMax = convertToSliderValue(dataMax);
int sliderDataMin = convertToSliderValue(dataMin) - 1; //Expands the slider range a little beyond the max and min values
int sliderDataMax = convertToSliderValue(dataMax) + 1;
if(autoScale->isChecked())
{
min = subFrameMin;
max = subFrameMax;
int sliderMin = convertToSliderValue(min);
int sliderMax = convertToSliderValue(max);
int sliderMin = convertToSliderValue(min) - 1; //Expands the slider range a little beyond the max and min values
int sliderMax = convertToSliderValue(max) + 1;
blackPointSlider->setRange(sliderMin, sliderMax);
blackPointSlider->setTickInterval((sliderMax - sliderMin) / 100);
whitePointSlider->setRange(sliderMin, sliderMax);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment