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:
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r--source/blender/editors/interface/interface_handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 21c3f4ca038..ce437fde69e 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -344,8 +344,8 @@ static void ui_apply_autokey_undo(bContext *C, uiBut *but)
const char *str= NULL;
/* define which string to use for undo */
- if ELEM(but->type, LINK, INLINK) str= "Add button link";
- else if ELEM(but->type, MENU, ICONTEXTROW) str= but->drawstr;
+ if (ELEM(but->type, LINK, INLINK)) str = "Add button link";
+ else if (ELEM(but->type, MENU, ICONTEXTROW)) str = but->drawstr;
else if (but->drawstr[0]) str= but->drawstr;
else str= but->tip;
@@ -1121,7 +1121,7 @@ static void ui_but_copy_paste(bContext *C, uiBut *but, uiHandleButtonData *data,
}
/* numeric value */
- if ELEM4(but->type, NUM, NUMABS, NUMSLI, HSVSLI) {
+ if (ELEM4(but->type, NUM, NUMABS, NUMSLI, HSVSLI)) {
if (but->poin==NULL && but->rnapoin.data==NULL);
else if (mode=='c') {