From 4483bb67d336100a751a08e51b41528b08b99f50 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 30 Oct 2018 21:55:44 +0100 Subject: [PATCH] - infoviewer: fix display of frequency for terrestrial channels; thx to Janus --- src/gui/infoviewer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index e0fd436d3..3cd7e16ed 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1643,7 +1643,10 @@ void CInfoViewer::showSNR () polarisation = transponder::pol(CFEManager::getInstance()->getLiveFE()->getPolarization()); int frequency = CFEManager::getInstance()->getLiveFE()->getFrequency(); - snprintf (freq, sizeof(freq), "%d.%d MHz %s", frequency / 1000, frequency % 1000, polarisation.c_str()); + int freqfactor = 1000; + if (CFrontend::isTerr(CFEManager::getInstance()->getLiveFE()->getCurrentDeliverySystem())) + freqfactor = 1000000; + snprintf (freq, sizeof(freq), "%d.%d MHz %s", frequency / freqfactor, frequency % freqfactor, polarisation.c_str()); int freqWidth = g_SignalFont->getRenderWidth(freq); if (freqWidth > numbox_maxtxtwidth)