diff options
author | rowanbeentje <rowan@beent.je> | 2010-11-27 17:32:17 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-11-27 17:32:17 +0000 |
commit | 9309908a0e5e425314f9e602ed79056134aa7750 (patch) | |
tree | be8af7e546bef5b88022af701aec8612b77740d7 /Source/SPCustomQuery.m | |
parent | 7019db6cf6d23e21e54af987f02b35cf816a89ff (diff) | |
download | sequelpro-9309908a0e5e425314f9e602ed79056134aa7750.tar.gz sequelpro-9309908a0e5e425314f9e602ed79056134aa7750.tar.bz2 sequelpro-9309908a0e5e425314f9e602ed79056134aa7750.zip |
- Right-align numeric columns in table content views and custom query results
- Fix exceptions caused by nil SSL locations when re-saving old session files
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index bfb6f952..f590de42 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -1486,6 +1486,13 @@ [[dataCell formatter] setTextLimit:[[columnDefinition objectForKey:@"char_length"] integerValue]]; } + // Set the column to right-aligned for numeric data types + if ([[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"integer"] + || [[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"float"]) + { + [dataCell setAlignment:NSRightTextAlignment]; + } + // Set field type for validations [[dataCell formatter] setFieldType:[columnDefinition objectForKey:@"type"]]; [theCol setDataCell:dataCell]; |