From 02e0512a3558f83bf0e25100aeb6fa580314e723 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 13 Aug 2018 12:06:10 +0200
Subject: [PATCH] typo correction

---
 tx_panadapter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tx_panadapter.c b/tx_panadapter.c
index 2466781..50c98e6 100644
--- a/tx_panadapter.c
+++ b/tx_panadapter.c
@@ -204,6 +204,7 @@ void tx_panadapter_update(TRANSMITTER *tx) {
   int display_width=gtk_widget_get_allocated_width (tx->panadapter);
   int display_height=gtk_widget_get_allocated_height (tx->panadapter);
 
+  // id = VFO which contains the TX frequency
   int id = active_receiver->id;
   if (split) {
     id = 1-id;
@@ -284,7 +285,7 @@ void tx_panadapter_update(TRANSMITTER *tx) {
   // band edges
   long long min_display=frequency-half;
   long long max_display=frequency+half;
-  int b=vfo[i].band;
+  int b=vfo[id].band;
   BAND *band=band_get_band(b);
   if(band->frequencyMin!=0LL) {
     cairo_set_source_rgb (cr, 1.0, 0.0, 0.0);
-- 
2.45.2