Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1152)

Unified Diff: source/blender/editors/interface/interface.c

Issue 7416049: Freestyle r54826 branch review Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/blender/editors/interface/interface.c
===================================================================
--- source/blender/editors/interface/interface.c (revision 54826)
+++ source/blender/editors/interface/interface.c (working copy)
@@ -3929,20 +3929,15 @@
}
}
else if (type == BUT_GET_RNA_LABEL_CONTEXT) {
- const char *_tmp = NULL;
if (but->rnaprop)
- _tmp = RNA_property_translation_context(but->rnaprop);
+ tmp = BLI_strdup(RNA_property_translation_context(but->rnaprop));
else if (but->optype)
- _tmp = RNA_struct_translation_context(but->optype->srna);
+ tmp = BLI_strdup(RNA_struct_translation_context(but->optype->srna));
else if (ELEM(but->type, MENU, PULLDOWN)) {
MenuType *mt = uiButGetMenuType(but);
if (mt)
- _tmp = RNA_struct_translation_context(mt->ext.srna);
+ tmp = BLI_strdup(RNA_struct_translation_context(mt->ext.srna));
}
- if (!_tmp) { /* _tmp == BLF_I18NCONTEXT_DEFAULT */
- _tmp = BLF_I18NCONTEXT_DEFAULT_BPY;
- }
- tmp = BLI_strdup(_tmp);
}
else if (ELEM3(type, BUT_GET_RNAENUM_IDENTIFIER, BUT_GET_RNAENUM_LABEL, BUT_GET_RNAENUM_TIP)) {
PointerRNA *ptr = NULL;

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b