Revision: 48850
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48850
Author: nazgul
Date: 2012-07-12 07:15:32 +0000 (Thu, 12 Jul 2012)
Log Message:
-----------
Fix crash on creating tooltip for sequencer's gl preview mode
Issue was caused by missed value for this enum, fixed by adding check
in tooltip generation.
Default value for this enum should also be fixed, but that would be
in separated commit.
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface.c
Modified: trunk/blender/source/blender/editors/interface/interface.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface.c 2012-07-12
06:47:34 UTC (rev 48849)
+++ trunk/blender/source/blender/editors/interface/interface.c 2012-07-12
07:15:32 UTC (rev 48850)
@@ -3792,12 +3792,14 @@
break;
}
}
- if (type == BUT_GET_RNAENUM_IDENTIFIER)
- tmp = BLI_strdup(item->identifier);
- else if (type == BUT_GET_RNAENUM_LABEL)
- tmp = BLI_strdup(item->name);
- else if (item->description &&
item->description[0])
- tmp = BLI_strdup(item->description);
+ if (item && item->identifier) {
+ if (type == BUT_GET_RNAENUM_IDENTIFIER)
+ tmp =
BLI_strdup(item->identifier);
+ else if (type == BUT_GET_RNAENUM_LABEL)
+ tmp = BLI_strdup(item->name);
+ else if (item->description &&
item->description[0])
+ tmp =
BLI_strdup(item->description);
+ }
}
}
else if (type == BUT_GET_OP_KEYMAP) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs