aboutsummaryrefslogtreecommitdiffstats
path: root/widget.c
diff options
context:
space:
mode:
authorreinelt <>2006-08-08 19:28:18 +0000
committerreinelt <>2006-08-08 19:28:18 +0000
commitdfd945989238e0d1451018936c6bd3eef722b408 (patch)
treee826f3b8eea17dfcd4df66805bf57e5ab2f9a660 /widget.c
parentaabc92a4511e5f1a4c7dcdb4343521b8223f0690 (diff)
downloadlcd4linux-dfd945989238e0d1451018936c6bd3eef722b408.tar.gz
[lcd4linux @ 2006-08-08 19:28:18 by reinelt]
widget type checking corrected
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/widget.c b/widget.c
index 5ade00c..0f17c9c 100644
--- a/widget.c
+++ b/widget.c
@@ -1,4 +1,4 @@
-/* $Id: widget.c,v 1.23 2006/02/21 05:50:34 reinelt Exp $
+/* $Id: widget.c,v 1.24 2006/08/08 19:28:18 reinelt Exp $
*
* generic widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget.c,v $
+ * Revision 1.24 2006/08/08 19:28:18 reinelt
+ * widget type checking corrected
+ *
* Revision 1.23 2006/02/21 05:50:34 reinelt
* keypad support from Cris Maj
*
@@ -266,7 +269,7 @@ int widget_add(const char *name, const int type, const int layer, const int row,
}
/* check if widget type matches */
- if ((Class->type & type) == 0) {
+ if (Class->type != type) {
error("widget '%s': class '%s' not applicable", name, class);
free(class);
return -1;