mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-18 14:37:50 -04:00
fix for spectrum disconnect after zooming in/out
This commit is contained in:
parent
db1374045b
commit
b236a9cb3e
@ -161,7 +161,13 @@ void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
|||||||
|
|
||||||
if (spectrumCanvas) {
|
if (spectrumCanvas) {
|
||||||
if ((spectrumCanvas->getCenterFrequency() != centerFreq) || (spectrumCanvas->getBandwidth() != bw)) {
|
if ((spectrumCanvas->getCenterFrequency() != centerFreq) || (spectrumCanvas->getBandwidth() != bw)) {
|
||||||
spectrumCanvas->setView(centerFreq,bw);
|
if (getViewState()) {
|
||||||
|
spectrumCanvas->setView(centerFreq,bw);
|
||||||
|
} else {
|
||||||
|
spectrumCanvas->disableView();
|
||||||
|
spectrumCanvas->setCenterFrequency(centerFreq);
|
||||||
|
spectrumCanvas->setBandwidth(bw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user