X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetWrap.cpp;h=79dd8065bf25a305ff56a86925728ea6fbe7eae3;hb=dbb1ac30e9a87007af7c53f0f93ec9e21826f90b;hp=c40f7005b7727275781a5b77ce6a3fe37c5a887e;hpb=d866717ef7503a1373dd1cb3925e1ac97b079192;p=lyx.git diff --git a/src/insets/InsetWrap.cpp b/src/insets/InsetWrap.cpp index c40f7005b7..79dd8065bf 100644 --- a/src/insets/InsetWrap.cpp +++ b/src/insets/InsetWrap.cpp @@ -58,7 +58,7 @@ InsetWrap::~InsetWrap() } -docstring InsetWrap::name() const +docstring InsetWrap::layoutName() const { return "Wrap:" + from_utf8(params_.type); } @@ -226,7 +226,7 @@ docstring InsetWrap::xhtml(XHTMLStream & xs, OutputParams const & rp) const { string const len = params_.width.asHTMLString(); string const width = len.empty() ? "50%" : len; - string const attr = "class='wrap' style='width: " + len + ";'"; + string const attr = "class='wrap' style='width: " + width + ";'"; xs << html::StartTag("div", attr); docstring const deferred = InsetText::insetAsXHTML(xs, rp, InsetText::WriteInnerTag);