*ScatterCtrl. Fixed problem in properties.

git-svn-id: svn://ultimatepp.org/upp/trunk@10944 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2017-03-17 20:44:00 +00:00
parent 8c60252e70
commit b93b19fb33

View file

@ -1108,7 +1108,7 @@ void ProcessingTab::OnFFT()
tabFreq.scatter.SetLabelX(tabFreq.opXAxis == 1 ? t_("Frequency [Hz]") : t_("Period [sec]"));
tabFreq.scatter.SetLabelY(legend);
tabFreq.scatter.ZoomToFit(true, true);
if (fft[int(idMaxFFT)].x < (fft[fft.GetCount() - 1].x)/2)
if (idMaxFFT > 0 && fft[int(idMaxFFT)].x < (fft[fft.GetCount() - 1].x)/2)
tabFreq.scatter.SetRange(fft[int(idMaxFFT)].x*2, Null);
tabFreq.comments.SetText(errText);