Fixed dot notation

pull/85/head
Ludovic Marcotte 2015-04-27 15:02:00 -04:00
parent ee74b78bf2
commit f2b5f5917b
1 changed files with 3 additions and 3 deletions

View File

@ -885,16 +885,16 @@ const unsigned short ansicpg874[256] = {
char *v = NULL; char *v = NULL;
if (fontInfo && fontInfo->name) if (fontInfo && fontInfo->name)
{ {
if (fontInfo->name.length < 128) if ([fontInfo->name length] < 128)
{ {
int tag_size = 15 + fontInfo->name.length; int tag_size = 15 + [fontInfo->name length];
v = calloc(tag_size, sizeof(char)); v = calloc(tag_size, sizeof(char));
snprintf(v, tag_size, "<font face=\"%s\">", [fontInfo->name UTF8String]); snprintf(v, tag_size, "<font face=\"%s\">", [fontInfo->name UTF8String]);
} }
else else
{ {
NSLog(@"RTFHandler: Font %u has %d chars length, parse error? " NSLog(@"RTFHandler: Font %u has %d chars length, parse error? "
"Ignored", font_index, fontInfo->name.length); "Ignored", font_index, [fontInfo->name length]);
v = calloc(7, sizeof(char)); v = calloc(7, sizeof(char));
sprintf(v, "<font>"); sprintf(v, "<font>");
} }