Gracefully handle missing gutter view delegate

This commit is contained in:
Allan Odgaard
2012-09-14 13:51:46 +02:00
parent 339c582f8c
commit 6bb23c1765

View File

@@ -205,6 +205,8 @@ struct data_source_t
- (CGFloat)widthForColumnWithIdentifier:(std::string const&)identifier
{
CGFloat width = 0;
if(!delegate)
return 5;
if(identifier == [GVLineNumbersColumnIdentifier UTF8String])
{