]> git.lyx.org Git - features.git/commitdiff
Fix the height output for InsetBox.
authorRichard Heck <rgheck@comcast.net>
Mon, 14 Dec 2009 16:52:33 +0000 (16:52 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 14 Dec 2009 16:52:33 +0000 (16:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32531 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index e1557bc15ac3a16ffbc192a60345d4ee2ee356de..1ad78ea2bf3a15b1339c49869e05c9a356b0d169 100644 (file)
@@ -486,7 +486,8 @@ docstring InsetBox::xhtml(XHTMLStream & xs, OutputParams const & runparams) cons
        string style;
        if (!params_.width.empty())
                style += ("width: " + params_.width.asHTMLString() + "; ");
-       if (!params_.height.empty())
+       // 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 + "'";