mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05: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->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…
Reference in New Issue
Block a user