]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
installer: further preparation
[lyx.git] / src / insets / InsetBox.cpp
index a07df279c3de2e513ad0df7cd0bb8057e15a1d81..30c238671b6d705c48aa8b9ab6eb184995f97c4b 100644 (file)
@@ -317,9 +317,9 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const
                os << "\\begin{framed}%\n";
                break;
        case Boxed:
-               if (width_string.empty()) {
-                       os << "\\framebox";
+               if (!width_string.empty()) {
                        if (!params_.inner_box) {
+                               os << "\\framebox";
                                // Special widths, see usrguide sec. 3.5
                                // FIXME UNICODE
                                if (params_.special != "none") {
@@ -331,7 +331,8 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const
                                           << ']';
                                if (params_.hor_pos != 'c')
                                        os << "[" << params_.hor_pos << "]";
-                       }
+                       } else
+                               os << "\\fbox";
                } else
                        os << "\\fbox";
                os << "{";