From 2b5d32c80bbb3a00470001b33f23e796f5818ea2 Mon Sep 17 00:00:00 2001 From: Stephen Parry Date: Sun, 10 Jul 2016 02:31:50 +0100 Subject: Fixed incorrect array refernces causing bug 1600496 Fixed bugs: - https://launchpad.net/bugs/1600496 (bzr r15015) --- src/conditions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/conditions.cpp b/src/conditions.cpp index 57f63181d..c5f0d8b2c 100644 --- a/src/conditions.cpp +++ b/src/conditions.cpp @@ -218,7 +218,7 @@ static bool evaluateSVG11Feature(gchar const *feature) { }; for ( unsigned int i = 0 ; i < sizeof(_supported_features)/sizeof(_supported_features[0]); i++ ) { - if ( 0 == strcasecmp(feature, _supported_features[0]) ) + if ( 0 == strcasecmp(feature, _supported_features[i]) ) return true; } return false; @@ -236,7 +236,7 @@ static bool evaluateSVG10Feature(gchar const *feature) { // "dom.svg.all" }; for ( unsigned int i = 0 ; i < sizeof(_supported_features)/sizeof(_supported_features[0]); i++ ) { - if ( 0 == strcasecmp(feature, _supported_features[0]) ) + if ( 0 == strcasecmp(feature, _supported_features[i]) ) return true; } return false; -- cgit v1.2.3