Add warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36055 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 14:00:56 +00:00
parent 3215a451dd
commit 4091078fb4

View File

@ -1294,7 +1294,7 @@ def revert_includeonly(document):
return
j = find_end_of(document.header, i, "\\begin_includeonly", "\\end_includeonly")
if j == -1:
# this should not happen
document.warning("Unable to find end of includeonly section!!")
break
document.header[i : j + 1] = []