aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-09 11:04:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-09 11:04:01 +0000
commit6b60ddf1029b912586f80b6b7727f8083fb122ea (patch)
treef140424ab4acd2cda8fa1adf52cec74740b68a04 /Source/SPTableContent.m
parent869e355e7f4856dee3171520f549e32855f68dc5 (diff)
downloadsequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.tar.gz
sequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.tar.bz2
sequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.zip
• enabled thumbnail images of spatial geometry fields as tooltips
- note: geometrycollection support will follow soon
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 3aa154a7..760526c9 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -3350,14 +3350,14 @@
}
}
else if ([theValue isKindOfClass:[MCPGeometryData class]]) {
- // SPGeometryDataView *v = [[SPGeometryDataView alloc] initWithCoordinates:[theValue coordinates]];
- // image = [v image];
- // if(image) {
- // [SPTooltip showWithObject:image atLocation:pos ofType:@"image"];
- // [v release];
- // return nil;
- // }
- // [v release];
+ SPGeometryDataView *v = [[SPGeometryDataView alloc] initWithCoordinates:[theValue coordinates]];
+ image = [v thumbnailImage];
+ if(image) {
+ [SPTooltip showWithObject:image atLocation:pos ofType:@"image"];
+ [v release];
+ return nil;
+ }
+ [v release];
}
// Show the cell string value as tooltip (including line breaks and tabs)