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
path: root/source
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2012-07-07 18:58:40 +0400
committerSv. Lockal <lockalsash@gmail.com>2012-07-07 18:58:40 +0400
commitd58ce290e1e4dcb8d0b96259fdf29c854bfaef49 (patch)
tree558af032374b00ff5b4df1af4b4663ca3dacc078 /source
parent3dacc164e4fe7d31a926112f2aa11852c20eadc6 (diff)
increase file browser title length for multibyte translations and use utf8 copy for it
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_file/filesel.c2
-rw-r--r--source/blender/makesdna/DNA_space_types.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index adb3e7acca5..ef3e150b034 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -117,7 +117,7 @@ short ED_fileselect_set_params(SpaceFile *sfile)
const short is_directory = (RNA_struct_find_property(op->ptr, "directory") != NULL);
const short is_relative_path = (RNA_struct_find_property(op->ptr, "relative_path") != NULL);
- BLI_strncpy(params->title, RNA_struct_ui_name(op->type->srna), sizeof(params->title));
+ BLI_strncpy_utf8(params->title, RNA_struct_ui_name(op->type->srna), sizeof(params->title));
if (RNA_struct_find_property(op->ptr, "filemode"))
params->type = RNA_int_get(op->ptr, "filemode");
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index b3f0950fa75..71b59131f0b 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -518,7 +518,7 @@ typedef enum eSpaceSeq_Proxy_RenderSize {
/* Config and Input for File Selector */
typedef struct FileSelectParams {
- char title[32]; /* title, also used for the text of the execute button */
+ char title[96]; /* title, also used for the text of the execute button */
char dir[1056]; /* directory, FILE_MAX_LIBEXTRA, 1024 + 32, this is for extreme case when 1023 length path
* needs to be linked in, where foo.blend/Armature need adding */
char file[256]; /* file */