X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetBox.cpp;h=ec113744964695eaa25f40d5ad45a07e40c795cf;hb=bfddee97e191a853f0576f4fab3f095c4e9ce0de;hp=7b8d8232c292ee734d8d81d90f4158eb39279982;hpb=41463b84e55008a8992aa93a594a9c0a900276de;p=lyx.git diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 7b8d8232c2..ec11374496 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -478,8 +478,11 @@ docstring InsetBox::xhtml(XHTMLStream & xs, OutputParams const & runparams) cons // construct attributes string attrs = "class='" + params_.type + "'"; string style; - if (!params_.width.empty()) - style += ("width: " + params_.width.asHTMLString() + "; "); + if (!params_.width.empty()) { + string w = params_.width.asHTMLString(); + if (w != "100%") + 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() + "; ");