aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContentDataSource.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContentDataSource.m')
-rw-r--r--Source/SPTableContentDataSource.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPTableContentDataSource.m b/Source/SPTableContentDataSource.m
index 21422865..34b886d4 100644
--- a/Source/SPTableContentDataSource.m
+++ b/Source/SPTableContentDataSource.m
@@ -130,8 +130,12 @@
fieldEditorCheckLock = &tableValuesLock;
}
- // Always retrieve the short string representation, truncating the value where necessary
- return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
+ // Unless we're editing, always retrieve the short string representation, truncating the value where necessary
+ if ([tableView editedColumn] == (NSInteger)columnIndex || [tableView editedRow] == rowIndex) {
+ return [value stringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
+ } else {
+ return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
+ }
}
if ([value isSPNotLoaded]) {