Fix typo/thinko here. It's the match result we want to check, of course.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35994 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-02 14:47:28 +00:00
parent 3142a62c7a
commit e37525b0ba

View File

@ -1402,7 +1402,7 @@ def revert_math_output(document):
rgx = re.compile(r'\\html_math_output\s+(\d)')
m = rgx.match(document.header[i])
newval = "true"
if rgx:
if m:
val = m.group(1)
if val == "1" or val == "2":
newval = "false"