]> git.lyx.org Git - features.git/commitdiff
* lyx_1_6.py (revert_wrapplacement):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 15 Dec 2008 09:45:52 +0000 (09:45 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 15 Dec 2008 09:45:52 +0000 (09:45 +0000)
- fix reversion of placement argument (bug 5618).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27875 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index 0f59bbab2f142ba0f227e1d22fe2789e2412c38f..bc71d94418cd3686640cb9195888fa2541e3eb31 100644 (file)
@@ -2319,11 +2319,12 @@ def revert_wrapplacement(document):
             document.warning("Malformed LyX document: Couldn't find placement parameter of wrap float.")
             i += 1
             continue
-        r = re.compile("placement (o|i|l|r)")
+        r = re.compile("placement (o|i|l|r|O|I|L|R)")
         m = r.match(document.body[j])
         if m == None:
             document.warning("Malformed LyX document: Placement option isn't O|I|R|L!")
-        document.body[j] = "placement " + m.group(1).lower()
+        else:
+            document.body[j] = "placement " + m.group(1).lower()
         i = j