]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/parser_tools.py
Fix warning when not using Qt regexps
[lyx.git] / lib / lyx2lyx / parser_tools.py
index 7b7fcfa04933da534506a565b56a8c8869be00ed..895a4cde77f3b6e2521687427eca3616c4de0310 100644 (file)
@@ -689,7 +689,7 @@ def count_pars_in_inset(lines, i):
   pars = 0
   for j in range(ins[1], ins[2]):
       m = re.match(r'\\begin_layout (.*)', lines[j])
-      if m and get_containing_inset(lines, j)[0] == ins[0]:
+      if m and get_containing_inset(lines, j)[1] == ins[1]:
           pars += 1
 
   return pars