Skip to content

Commit ae1b5fa

Browse files
committed
Make zoom reset more reliable
Especially at higher zooms, right click on the freq axis did not fully reset the zoom level on the fft dock. Add an emit to resetHorizontalZoom() as is done already in zoomStepX(). Signed-off-by: Jeff Long <willcode4@gmail.com>
1 parent a3d39ab commit ae1b5fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qtgui/plotter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ void CPlotter::resetHorizontalZoom(void)
16651665
{
16661666
setFftCenterFreq(0);
16671667
setSpanFreq((qint32)m_SampleFreq);
1668+
emit newZoomLevel(1.0);
16681669
}
16691670

16701671
/** Center FFT plot around 0 (corresponds to center freq). */

0 commit comments

Comments
 (0)