We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a12760e commit 6f6a176Copy full SHA for 6f6a176
EAGLEView/Models/EAGLEDrawablePin.m
@@ -37,6 +37,11 @@ - (id)initFromXMLElement:(DDXMLElement *)element inFile:(EAGLEFile *)file
37
38
// Length
39
NSString *lengthString = [[element attributeForName:@"length"] stringValue];
40
+
41
+ // If there is no length, default to short (#1)
42
+ if( !lengthString )
43
+ lengthString = @"short";
44
45
if( [lengthString isEqualToString:@"short"] )
46
_length = EAGLEDrawablePinLength_Short;
47
else if( [lengthString isEqualToString:@"middle"] )
0 commit comments