Fix the height output for InsetBox.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32531 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-14 16:52:33 +00:00
parent cbe28d9d7a
commit 814af09a69

View File

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