From 95af4887986f384612516450998c08bf9d84ec08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sun, 17 May 2015 17:36:46 +0200 Subject: [PATCH] InsetBox.cpp: fix a bug I introduced in [88593e0e/lyxgit] --- src/insets/InsetBox.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 0f5408751c..20968d89d6 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -441,7 +441,7 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const if (!width_string.empty()) { if (params_.backgroundcolor != "none") os << "\\colorbox{" << params_.backgroundcolor << "}{"; - os << "\\makebox{"; + os << "\\makebox"; // FIXME UNICODE // output the width and horizontal position if (params_.special != "none") { @@ -455,10 +455,11 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const os << "[" << params_.hor_pos << "]"; } else { if (params_.backgroundcolor != "none") - os << "\\colorbox{" << params_.backgroundcolor << "}{"; + os << "\\colorbox{" << params_.backgroundcolor << "}"; else - os << "\\mbox{"; + os << "\\mbox"; } + os << "{"; } else { if (params_.backgroundcolor != "none" && btype == Frameless)