From a7131d300cc1b63fd33e3bd70471ef7067861879 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 19 Jan 2016 12:03:16 +0100 Subject: [PATCH] Fix font tag. --- MP42/MP42HtmlParser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP42/MP42HtmlParser.m b/MP42/MP42HtmlParser.m index 75651c4..ad4daba 100644 --- a/MP42/MP42HtmlParser.m +++ b/MP42/MP42HtmlParser.m @@ -148,7 +148,7 @@ int compare_color(rgba_color c1, rgba_color c2) { if (colorRange.location != NSNotFound && colorRange.location < content.length) { colorRange.location += 8; colorRange.length = 6; - if ((colorRange.location + colorRange.location) < content.length) { + if ((colorRange.location + colorRange.length) < content.length) { NSString *color = [content substringWithRange:colorRange]; const char *r = [[color substringWithRange:NSMakeRange(0, 2)] UTF8String]; const char *g = [[color substringWithRange:NSMakeRange(2, 2)] UTF8String];