forked from openlp/openlp
Off-by-one (Part 1 of bug #705614)
This commit is contained in:
parent
f61dbdeef2
commit
b709cd53fe
@ -177,7 +177,7 @@ def parse_reference(reference):
|
|||||||
to_verse = -1
|
to_verse = -1
|
||||||
if to_chapter > from_chapter:
|
if to_chapter > from_chapter:
|
||||||
ref_list.append((book, from_chapter, from_verse, -1))
|
ref_list.append((book, from_chapter, from_verse, -1))
|
||||||
for i in range(from_chapter + 1, to_chapter - 1):
|
for i in range(from_chapter + 1, to_chapter):
|
||||||
ref_list.append((book, i, 1, -1))
|
ref_list.append((book, i, 1, -1))
|
||||||
ref_list.append((book, to_chapter, 1, to_verse))
|
ref_list.append((book, to_chapter, 1, to_verse))
|
||||||
elif to_verse >= from_verse or to_verse == -1:
|
elif to_verse >= from_verse or to_verse == -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user