diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-27 04:28:44 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-27 04:28:44 +0000 |
commit | 0255bd389f4230da940590a0644ff9ee77739015 (patch) | |
tree | bf3e179fbd108135d2209ec069d55084e1c08540 | |
parent | 9d232d8e6976d60b46fc0f3d45cea1826405fda9 (diff) |
fixed error/warning messages
svn path=/trunk/externals/hcs/; revision=15665
-rw-r--r-- | colorpanel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/colorpanel.c b/colorpanel.c index 7f46351..b787408 100644 --- a/colorpanel.c +++ b/colorpanel.c @@ -34,7 +34,7 @@ static void colorpanel_list(t_colorpanel *x, t_symbol *s, int argc, t_atom *argv char color_string[MAXPDSTRING]; strncpy(color_string,"#",MAXPDSTRING); - if(argc > 2) + if(argc > 3) logpost(x, 2, "[colorpanel] warning more than three elements in list"); for(i=0; i<3; i++) { @@ -47,7 +47,8 @@ static void colorpanel_list(t_colorpanel *x, t_symbol *s, int argc, t_atom *argv } else { - pd_error(x,"[colorpanel] symbol atom in color list"); + pd_error(x,"[colorpanel] symbols are not allowed in the color list"); + return; } } memcpy(x->current_color, color_string, 7); |