]> git.lyx.org Git - features.git/commitdiff
InsetBox.cpp: fix a bug I introduced in [88593e0e/lyxgit]
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 17 May 2015 15:36:46 +0000 (17:36 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 17 May 2015 15:36:46 +0000 (17:36 +0200)
src/insets/InsetBox.cpp

index 0f5408751cf9be809ed8a7e7089de618ed2c6587..20968d89d6efc38deda5565ded05a0cd6a9cd599 100644 (file)
@@ -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)