Support using an absolute (image) path as mark identifier

This then uses the image found via this path.
This commit is contained in:
Allan Odgaard
2014-10-15 21:07:54 +02:00
parent 8976978ef2
commit 7cf17187fb

View File

@@ -233,7 +233,7 @@ private:
{
gutterImages = gutterImages ?: [NSMutableDictionary new];
if(NSImage* image = [NSImage imageNamed:aName inSameBundleAsClass:[self class]])
if(NSImage* image = [aName hasPrefix:@"/"] ? [[NSImage alloc] initWithContentsOfFile:aName] : [NSImage imageNamed:aName inSameBundleAsClass:[self class]])
{
CGFloat imageWidth = image.size.width;
CGFloat imageHeight = image.size.height;