From e94eb6bed69bc06339cc72fc411fab602d71027d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 4 Aug 2003 09:42:03 +0000 Subject: [PATCH] whitespace git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7492 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetquotes.C | 3 +-- src/insets/insettabular.C | 2 +- src/text2.C | 6 ++---- 3 files changed, 4 insertions(+), 7 deletions(-) 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); } }