summaryrefslogtreecommitdiff
path: root/ham/linpsk/patches/patch-ai
blob: fb7d50304ee3f019c510e85cf3827ca6c47e202f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ai,v 1.3 2016/12/25 21:45:09 joerg Exp $

--- src/spectrumdisplay.cpp.orig	2005-03-13 10:02:03.000000000 +0000
+++ src/spectrumdisplay.cpp
@@ -21,6 +21,8 @@
 #include <qpainter.h>
 #include <qsplitter.h>
 
+#include <pkgsrc_fixes.h>
+
 #include "spectrumdisplay.h"
 #include "crxchannel.h"
 #include "parameter.h"
@@ -174,11 +176,11 @@ p.setBrush(white);
 
   for (CRxChannel *pRx=settings.ChannelChain;pRx != 0;pRx= pRx->getNextChannel())
   {
-    if ( Farbe > 0)
+    if ( Farbe )
      {
        int ID = pRx->getID();
        if ( ID >= 0 && ID < Farbe->size() )
-         p.setPen(Farbe->at(ID));
+         p.setPen(at_replacement(*Farbe, ID));
      } 
     // Calculate Centerfrequency Coordinates
     z=(( (int) pRx->getRxFrequency()-minfreq)*xmax)/(maxfreq-minfreq);