File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,8 @@ - (void)loadTable:(NSString *)table
437
437
438
438
/* *
439
439
* Returns a dictionary describing the information of the table to be used for printing purposes.
440
+ *
441
+ * MUST BE CALLED ON THE UI THREAD!
440
442
*/
441
443
- (NSDictionary *)tableInformationForPrinting
442
444
{
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ - (void)generateTableInfoHTMLForPrinting
364
364
NSString *heading = NSLocalizedString(@" Table Information" , @" table information print heading" );
365
365
366
366
[engine setObject: connection forKey: @" c" ];
367
- [engine setObject: [extendedTableInfoInstance tableInformationForPrinting ] forKey: @" i" ];
367
+ [engine setObject: [[ extendedTableInfoInstance onMainThread ] tableInformationForPrinting ] forKey: @" i" ];
368
368
369
369
[printData setObject: heading forKey: @" heading" ];
370
370
[printData setObject: [[NSUnarchiver unarchiveObjectWithData: [prefs objectForKey: SPCustomQueryEditorFont]] fontName ] forKey: @" font" ];
You can’t perform that action at this time.
0 commit comments