Created
July 30, 2010 20:31
-
-
Save boucher/501266 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Editor/CibConnectionsInspector.j b/Editor/CibConnectionsInspector.j | |
index ea346dc..02e8c4e 100644 | |
--- a/Editor/CibConnectionsInspector.j | |
+++ b/Editor/CibConnectionsInspector.j | |
@@ -307,6 +307,9 @@ function CibConnectionInfoMake(leftLabel, rightLabel, aConnector) | |
- (void)layoutSubviews | |
{ | |
+ if (!leftField || !rightField) | |
+ return; | |
+ | |
var bounds = [self bounds]; | |
[leftField sizeToFit]; | |
@@ -330,6 +333,9 @@ function CibConnectionInfoMake(leftLabel, rightLabel, aConnector) | |
- (void)drawRect:(CGRect)aRect | |
{ | |
+ if (!leftField || !rightField) | |
+ return; | |
+ | |
var midY = CGRectGetMidY([self bounds]); | |
context = [[CPGraphicsContext currentContext] graphicsPort]; | |
@@ -346,7 +352,7 @@ function CibConnectionInfoMake(leftLabel, rightLabel, aConnector) | |
CGContextFillRoundedRectangleInRect(context, rightFieldFrame, 5.0, YES, YES, YES, YES); | |
CGContextStrokeRoundedRectangleInRect(context, rightFieldFrame, 5.0, YES, YES, YES, YES); | |
- if (connectionInfo.connector) | |
+ if (connectionInfo && connectionInfo.connector) | |
drawConnectionLine(context, CGPointMake(CGRectGetMaxX(leftFieldFrame) + 10.0, midY), CGPointMake(CGRectGetMinX(rightFieldFrame) - 10.0, midY)); | |
} | |
diff --git a/VERSION b/VERSION | |
index 1f4fa18..aa644df 100644 | |
--- a/VERSION | |
+++ b/VERSION | |
@@ -1 +1 @@ | |
-{"major":0,"minor":9,"build":13} | |
\ No newline at end of file | |
+{"major":0,"minor":9,"build":14} | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment