aboutsummaryrefslogtreecommitdiffstats
path: root/widget.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-08 19:28:18 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-08 19:28:18 +0000
commit0577f2c47263a4317a93c753f0e09269e67c06d9 (patch)
treee826f3b8eea17dfcd4df66805bf57e5ab2f9a660 /widget.c
parente99b5a0bfdcd32ad09975aa753b507e292e61476 (diff)
downloadlcd4linux-0577f2c47263a4317a93c753f0e09269e67c06d9.tar.gz
[lcd4linux @ 2006-08-08 19:28:18 by reinelt]
widget type checking corrected git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@682 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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;