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
28
29
30
31
32
33
34
35
36
|
$NetBSD: patch-ac,v 1.3 2016/12/25 21:45:09 joerg Exp $
--- src/crxdisplay.cpp.orig 2005-03-11 17:19:18.000000000 +0000
+++ src/crxdisplay.cpp
@@ -27,7 +27,7 @@
#include <qstyle.h>
#include <qpalette.h>
-
+#include <pkgsrc_fixes.h>
#include "crecording.h"
#include "crxchannel.h"
@@ -64,11 +64,11 @@ void MyTabBar::paintLabel ( QPainter *p,
flags |= QStyle::Style_HasFocus;
QColorGroup Cg=colorGroup();
- if (Farbe > 0)
+ if (Farbe)
{
int position=t->identifier();
if ( position >= 0 && position < Farbe->size() )
- Cg.setColor(QColorGroup::Foreground, Farbe->at(position));
+ Cg.setColor(QColorGroup::Foreground, at_replacement(*Farbe, position));
}
style().drawControl( QStyle::CE_TabBarLabel, p, this, br,
Cg,
@@ -236,7 +236,7 @@ if ( Sound == 0 )
Sound = new CSound(settings.serial);
}
-if ( Sound <= 0 )
+if ( Sound == 0 )
return false;
m_pDec2InPtr=dec2fir;
|