From b7cf7ffeb1942ec77ff10dfffb4073f4940f4744 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 8 Oct 2010 07:32:57 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20for=20editing=20spatial=20w?= =?UTF-8?q?kt=20data=20in=20field=20editor=20sheet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/SPCustomQuery.m') diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index a945a53d..5184edf7 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -2287,7 +2287,10 @@ [fieldEditor setAllowNULL:allowNULL]; id originalData = [resultData cellDataAtRow:rowIndex column:[[aTableColumn identifier] integerValue]]; - if ([originalData isNSNull]) originalData = [prefs objectForKey:SPNullValue]; + if ([originalData isNSNull]) + originalData = [NSString stringWithString:[prefs objectForKey:SPNullValue]]; + else if ([originalData isKindOfClass:[MCPGeometryData class]]) + originalData = [originalData wktString]; id editData = [[fieldEditor editWithObject:originalData fieldName:[columnDefinition objectForKey:@"name"] -- cgit v1.2.3