]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetBox.cpp
index ad2084f5bb7497c54d54f6e4db9390c075aa3a7f..1ad78ea2bf3a15b1339c49869e05c9a356b0d169 100644 (file)
@@ -485,9 +485,10 @@ docstring InsetBox::xhtml(XHTMLStream & xs, OutputParams const & runparams) cons
        string attrs = "class='" + params_.type + "'";
        string style;
        if (!params_.width.empty())
-               style += ("width: " + params_.width.asHTMLString() + ";");
-       if (!params_.height.empty())
-               style += ("height: " + params_.height.asHTMLString() + ";");
+               style += ("width: " + params_.width.asHTMLString() + "; ");
+       // The special heights don't really mean anything for us.
+       if (!params_.height.empty() && params_.height_special == "none")
+               style += ("height: " + params_.height.asHTMLString() + "; ");
        if (!style.empty())
                attrs += " style='" + style + "'";