From a79780b1a41ad94a15961206cd9856ce8b9c890f Mon Sep 17 00:00:00 2001 From: Simon Clitherow Date: Sun, 22 Dec 2002 13:43:21 +0000 Subject: [PATCH] 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, ""); > --- source/blender/src/toolbox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index a12e294d7e8..b35685352fb 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -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 */