increase file browser title length for multibyte translations and use utf8 copy for it
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user