mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-07-31 04:42:25 -04:00
Range selection snapping..
This commit is contained in:
parent
d3f1d5236c
commit
a39b745d44
@ -894,6 +894,13 @@ void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int snap = wxGetApp().getFrequencySnap();
|
||||||
|
|
||||||
|
if (snap > 1) {
|
||||||
|
freq = roundl((long double)freq/(double)snap)*snap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!isNew && wxGetApp().getDemodMgr().getDemodulators().size()) {
|
if (!isNew && wxGetApp().getDemodMgr().getDemodulators().size()) {
|
||||||
demod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
demod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user