From 3b3156d55ddbdfacd59aa7b092853452f4c1ad0f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 22 Jul 2013 23:12:26 +0200 Subject: [PATCH] CSignalBar/CSignalNoiseRatioBar: add missing initSBItems() --- src/gui/widget/signalbars.cpp | 2 ++ src/gui/widget/signalbars.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/signalbars.cpp b/src/gui/widget/signalbars.cpp index 1a0dc3564..b6f44bd81 100644 --- a/src/gui/widget/signalbars.cpp +++ b/src/gui/widget/signalbars.cpp @@ -39,6 +39,7 @@ using namespace std; CSignalBar::CSignalBar() { initVarSigBar(); + initSBItems(); } CSignalBar::CSignalBar(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref) @@ -220,6 +221,7 @@ void CSignalBar::Repaint() CSignalNoiseRatioBar::CSignalNoiseRatioBar() { initVarSnrBar(); + initSBItems(); } CSignalNoiseRatioBar::CSignalNoiseRatioBar(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref) diff --git a/src/gui/widget/signalbars.h b/src/gui/widget/signalbars.h index 85501f2cd..1d5eb64b3 100644 --- a/src/gui/widget/signalbars.h +++ b/src/gui/widget/signalbars.h @@ -254,7 +254,7 @@ class CSignalBox : public CComponentsForm ///sets the caption color of signalbars, see also property 'sbx_caption_color' void setTextColor(const fb_pixel_t& caption_color){ sbx_caption_color = caption_color;}; - ///sets the caption color of signalbars, see also property 'sbx_caption_color' + ///get caption color of signalbars, see also property 'sbx_caption_color' fb_pixel_t getTextColor(){return sbx_caption_color;}; ///refresh all current snr value, use this before paint().