]> granicus.if.org Git - icu/commitdiff
ICU-12153 uspoof_setRestrictionLevel also must enable restriction level checking.
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 8 Jun 2016 20:16:13 +0000 (20:16 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 8 Jun 2016 20:16:13 +0000 (20:16 +0000)
X-SVN-Rev: 38811

icu4c/source/i18n/uspoof.cpp

index c6bbeb6c8416e1c0c3defc22512e839e190a44de..6b85eb0b2b2b67a58ca62590e2412051878a4130 100644 (file)
@@ -250,6 +250,7 @@ uspoof_setRestrictionLevel(USpoofChecker *sc, URestrictionLevel restrictionLevel
     SpoofImpl *This = SpoofImpl::validateThis(sc, status);
     if (This != NULL) {
         This->fRestrictionLevel = restrictionLevel;
+        This->fChecks |= USPOOF_RESTRICTION_LEVEL;
     }
 }