mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
fix(mail): fix type of SOGoMailComposeFontSize defaults
This commit is contained in:
@@ -600,11 +600,12 @@ static NSArray *infoKeys = nil;
|
||||
{
|
||||
NSDictionary *info;
|
||||
NSException *error;
|
||||
NSString *fontSize, *content;
|
||||
NSString *content;
|
||||
NGMimeType *mimeType;
|
||||
WORequest *request;
|
||||
SOGoDraftObject *co;
|
||||
SOGoUserDefaults *ud;
|
||||
int fontSize;
|
||||
|
||||
error = nil;
|
||||
request = [context request];
|
||||
@@ -629,8 +630,8 @@ static NSArray *infoKeys = nil;
|
||||
// Set a base font size if mail is HTML and user has set a default font-size
|
||||
ud = [[context activeUser] userDefaults];
|
||||
fontSize = [ud mailComposeFontSize];
|
||||
if ([fontSize intValue] > 0)
|
||||
content = [NSString stringWithFormat: @"<html><span style=\"font-size: %@px;\">%@</span></html>",
|
||||
if (fontSize > 0)
|
||||
content = [NSString stringWithFormat: @"<html><span style=\"font-size: %ipx;\">%@</span></html>",
|
||||
fontSize, text];
|
||||
else
|
||||
content = [NSString stringWithFormat: @"<html>%@</html>", text];
|
||||
|
||||
Reference in New Issue
Block a user