fixed a *really* minor bug where tooltips were not resetting if next

call to add_numbut() asks for a NULL tooltip. --aphex

============================================================
RCS file: /cvs01/blender/source/blender/src/toolbox.c,v
retrieving revision 1.4
diff -r1.4 toolbox.c
1356c1356,1360
< 	if(tip) strcpy(numbuts[nr].tip, tip);
---
> 	if(tip)
> 		strcpy(numbuts[nr].tip, tip);
> 	else
> 		strcpy(numbuts[nr].tip, "");
>
This commit is contained in:
Simon Clitherow 2002-12-22 13:43:21 +00:00
parent 1eb669a62d
commit a79780b1a4

@ -1353,7 +1353,11 @@ void add_numbut(int nr, int type, char *str, float min, float max, void *poin, c
strcpy(numbuts[nr].name, str);
numbuts[nr].min= min;
numbuts[nr].max= max;
if(tip) strcpy(numbuts[nr].tip, tip);
if(tip)
strcpy(numbuts[nr].tip, tip);
else
strcpy(numbuts[nr].tip, "");
/* LET OP: TEX BUTTON UITZONDERING */