Bugfix: passing on uninitialized var to a function made msvc halt.
Strange that gcc didnt complain :)

Brecht: check if this 'a' was needed as counter or so?
This commit is contained in:
2009-02-17 14:56:07 +00:00
parent 7a66002753
commit 9185f7931a

View File

@@ -387,7 +387,7 @@ int uiDefAutoButsRNA(uiBlock *block, PointerRNA *ptr)
else
name= "";
uiDefAutoButR(block, ptr, prop, a, name, x+DEF_BUT_WIDTH, y, DEF_BUT_WIDTH, DEF_BUT_HEIGHT-1);
uiDefAutoButR(block, ptr, prop, 0, name, x+DEF_BUT_WIDTH, y, DEF_BUT_WIDTH, DEF_BUT_HEIGHT-1);
y -= DEF_BUT_HEIGHT;
}