From 9144840d37e0d0a7f1b53c4dea5a1522a859854b Mon Sep 17 00:00:00 2001 From: "Jorj X. McKie" Date: Mon, 28 Aug 2023 05:26:47 -0400 Subject: [PATCH] Fixing #2522 Fix typo when changing the RBGroups entry of Optional Contents. --- fitz/fitz.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fitz/fitz.i b/fitz/fitz.i index 1341b7b29..38c4aa83d 100644 --- a/fitz/fitz.i +++ b/fitz/fitz.i @@ -4030,7 +4030,7 @@ if rbgroups: if not type(x) in (list, tuple): raise ValueError("bad RBGroup '%s'" % x) s = set(x).difference(ocgs) - if f != set(): + if s != set(): raise ValueError("bad OCGs in RBGroup: %s" % s) if basestate: