mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
InsetBox.cpp: fix a bug I introduced in [88593e0e/lyxgit]
This commit is contained in:
parent
84cca2dd94
commit
95af488798
@ -441,7 +441,7 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
if (!width_string.empty()) {
|
if (!width_string.empty()) {
|
||||||
if (params_.backgroundcolor != "none")
|
if (params_.backgroundcolor != "none")
|
||||||
os << "\\colorbox{" << params_.backgroundcolor << "}{";
|
os << "\\colorbox{" << params_.backgroundcolor << "}{";
|
||||||
os << "\\makebox{";
|
os << "\\makebox";
|
||||||
// FIXME UNICODE
|
// FIXME UNICODE
|
||||||
// output the width and horizontal position
|
// output the width and horizontal position
|
||||||
if (params_.special != "none") {
|
if (params_.special != "none") {
|
||||||
@ -455,10 +455,11 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
os << "[" << params_.hor_pos << "]";
|
os << "[" << params_.hor_pos << "]";
|
||||||
} else {
|
} else {
|
||||||
if (params_.backgroundcolor != "none")
|
if (params_.backgroundcolor != "none")
|
||||||
os << "\\colorbox{" << params_.backgroundcolor << "}{";
|
os << "\\colorbox{" << params_.backgroundcolor << "}";
|
||||||
else
|
else
|
||||||
os << "\\mbox{";
|
os << "\\mbox";
|
||||||
}
|
}
|
||||||
|
os << "{";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (params_.backgroundcolor != "none" && btype == Frameless)
|
if (params_.backgroundcolor != "none" && btype == Frameless)
|
||||||
|
Loading…
Reference in New Issue
Block a user