mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
lyx_2_2.py: fix reversion of colored boxes with special features
This commit is contained in:
parent
3677c20be9
commit
e07cb1da96
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user