From 0577f2c47263a4317a93c753f0e09269e67c06d9 Mon Sep 17 00:00:00 2001 From: reinelt Date: Tue, 8 Aug 2006 19:28:18 +0000 Subject: [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 --- widget.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'widget.c') 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; -- cgit v1.2.3