X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetArgument.cpp;h=00484f791f49154f617811b72e705fc54909d66e;hb=44ef3fadee3435a2eaaf767c6489499889598edc;hp=37c244d1582296e8d60b54788f17ba8ce6172060;hpb=70b3d3adccdda2daf9346b995575f9ee658ac5d3;p=lyx.git diff --git a/src/insets/InsetArgument.cpp b/src/insets/InsetArgument.cpp index 37c244d158..00484f791f 100644 --- a/src/insets/InsetArgument.cpp +++ b/src/insets/InsetArgument.cpp @@ -43,7 +43,8 @@ InsetArgument::InsetArgument(Buffer * buf, string const & name) : InsetCollapsible(buf), name_(name), labelstring_(docstring()), font_(inherit_font), labelfont_(inherit_font), decoration_(string()), pass_thru_context_(false), pass_thru_local_(false), pass_thru_(false), - pass_thru_chars_(docstring()), is_toc_caption_(false), newline_cmd_(string()) + free_spacing_(false), pass_thru_chars_(docstring()), is_toc_caption_(false), + newline_cmd_(string()) {} @@ -61,7 +62,7 @@ void InsetArgument::read(Lexer & lex) } -void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype) +void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted) { bool const insetlayout = !it.paragraph().layout().hasArgs(); Layout::LaTeXArgMap const args = insetlayout ? @@ -119,6 +120,7 @@ void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype) decoration_ = (*lait).second.decoration; pass_thru_chars_ = (*lait).second.pass_thru_chars; newline_cmd_ = (*lait).second.newlinecmd; + free_spacing_ = (*lait).second.free_spacing; pass_thru_local_ = false; if (lait->second.is_toc_caption) { is_toc_caption_ = true; @@ -155,7 +157,7 @@ void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype) } setButtonLabel(); - InsetCollapsible::updateBuffer(it, utype); + InsetCollapsible::updateBuffer(it, utype, deleted); }