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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-01-03 21:11:25 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-03 21:11:25 +0400
commit57407d39b0230a1f1a137beaedb7a4771d8b8272 (patch)
tree0560fb23d2e0e356bf92247d8745b65efc2878df /source/blender/makesrna/intern/rna_color.c
parent0dabf824fbcb7d343919edd88e29bd267a8734f6 (diff)
Fix crash when trying to reset color space to default value
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r--source/blender/makesrna/intern/rna_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index c430a89655d..2ae3ca1dfbd 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -544,7 +544,7 @@ static void rna_ColorManagedColorspaceSettings_colorspace_set(struct PointerRNA
ColorManagedColorspaceSettings *colorspace = (ColorManagedColorspaceSettings *) ptr->data;
const char *name = IMB_colormanagement_colorspace_get_indexed_name(value);
- if (name) {
+ if (name && name[0]) {
BLI_strncpy(colorspace->name, name, sizeof(colorspace->name));
}
}