kopia lustrzana https://gitlab.com/eliggett/wfview
Fix LSB passband resize
rodzic
e94c3e53c5
commit
f224068ec1
16
wfmain.cpp
16
wfmain.cpp
|
@ -4740,10 +4740,19 @@ void wfmain::handlePlotMouseMove(QMouseEvent *me)
|
||||||
else if (passbandAction == passbandResizing) {
|
else if (passbandAction == passbandResizing) {
|
||||||
// We are currently resizing the passband.
|
// We are currently resizing the passband.
|
||||||
double pb = 0.0;
|
double pb = 0.0;
|
||||||
double origin = passbandCenterFrequency;
|
double origin = 0.0;
|
||||||
if (currentModeInfo.mk == modeCW || currentModeInfo.mk == modeCW_R)
|
switch (currentModeInfo.mk)
|
||||||
{
|
{
|
||||||
|
case modeCW:
|
||||||
|
case modeCW_R:
|
||||||
origin = 0.0;
|
origin = 0.0;
|
||||||
|
break;
|
||||||
|
case modeLSB:
|
||||||
|
origin = -passbandCenterFrequency;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
origin = passbandCenterFrequency;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plot->xAxis->pixelToCoord(me->pos().x()) >= freq.MHzDouble + origin) {
|
if (plot->xAxis->pixelToCoord(me->pos().x()) >= freq.MHzDouble + origin) {
|
||||||
|
@ -4902,6 +4911,9 @@ void wfmain::receiveMode(unsigned char mode, unsigned char filter)
|
||||||
removePeriodicCommand(cmdGetRttyMark);
|
removePeriodicCommand(cmdGetRttyMark);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
removePeriodicCommand(cmdGetCwPitch);
|
||||||
|
removePeriodicCommand(cmdGetPskTone);
|
||||||
|
removePeriodicCommand(cmdGetRttyMark);
|
||||||
passbandCenterFrequency = 0.0;
|
passbandCenterFrequency = 0.0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue