diff --git a/src/insets/insetquotes.C b/src/insets/insetquotes.C index 425c89e0ab..2bc1751a49 100644 --- a/src/insets/insetquotes.C +++ b/src/insets/insetquotes.C @@ -261,8 +261,7 @@ int InsetQuotes::latex(Buffer const * buf, ostream & os, #if 0 // This cannot be used. (Lgb) string const curr_lang = - parOwner()->getFont(buf->params, - curr_pos).language()->babel(); + parOwner()->getFont(buf->params, curr_pos).language()->babel(); #else // And this is not the way... (Lgb) string const curr_lang = buf->params.language->lang(); diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index e4a1472241..aff3296c9c 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -520,7 +520,7 @@ bool InsetTabular::updateInsetInInset(BufferView * bv, InsetOld * inset) { InsetOld * tl_inset = inset; // look if this inset is really inside myself! - while(tl_inset->owner() && tl_inset->owner() != this) + while (tl_inset->owner() && tl_inset->owner() != this) tl_inset = tl_inset->owner(); // if we enter here it's not ower inset if (!tl_inset->owner()) diff --git a/src/text2.C b/src/text2.C index 949df4f60b..2e795049ff 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1199,10 +1199,8 @@ void LyXText::updateCounters() string const & newLabel = pit->params().labelString(); - if (oldLabel.empty() && !newLabel.empty()) { - removeParagraph(rowit); - appendParagraph(rowit); - } + if (oldLabel != newLabel) + redoParagraph(pit); } }