commit e07cb1da96197172a5343a339e9a2a78f2a7b414 Author: Uwe Stöhr <uwesto...@lyx.org> Date: Sat Apr 15 19:58:56 2017 +0200
lyx_2_2.py: fix reversion of colored boxes with special features --- lib/lyx2lyx/lyx_2_2.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index ad76d5f..b05d8fe 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -1275,7 +1275,7 @@ def revert_colorbox(document): else: # we also neeed to load xcolor in the preamble but only once add_to_preamble(document, ["\\@ifundefined{rangeHsb}{\\usepackage{xcolor}}{}"]) - document.body[einset + 1 : einset + 1] = put_cmd_in_ert("}") + document.body[einset + 2 : einset + 2] = put_cmd_in_ert("}") if framecolor != defaultframecolor: document.body[binset:binset] = put_cmd_in_ert("\\fcolorbox{" + framecolor + "}{" + backcolor + "}{") else: