diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2002-12-22 16:43:21 +0300 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2002-12-22 16:43:21 +0300 |
commit | a79780b1a41ad94a15961206cd9856ce8b9c890f (patch) | |
tree | 8627fb8a79e09af69595b805674b16af8339e7e2 | |
parent | 1eb669a62d4ef494adbb161a25e90463c08a644b (diff) |
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, "");
>
-rw-r--r-- | source/blender/src/toolbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 */ |