Slight simplification.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36037 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 12:24:33 +00:00
parent 248bd19a72
commit c2a9361960

View File

@ -923,8 +923,8 @@ def revert_nomencl_cwidth(document):
def revert_applemac(document):
" Revert applemac encoding to auto "
i = 0
if document.encoding == "applemac":
if document.encoding != "applemac":
return
document.encoding = "auto"
i = find_token(document.header, "\\encoding", 0)
if i != -1: