Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Clitherow <aphex@nildram.co.uk>2002-12-22 16:43:21 +0300
committerSimon Clitherow <aphex@nildram.co.uk>2002-12-22 16:43:21 +0300
commita79780b1a41ad94a15961206cd9856ce8b9c890f (patch)
tree8627fb8a79e09af69595b805674b16af8339e7e2 /source/blender
parent1eb669a62d4ef494adbb161a25e90463c08a644b (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, ""); >
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/src/toolbox.c6
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 */