From b5311a000447eb29fbc4b88e1c2ffd28cf45a59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 31 May 2001 22:34:05 +0000 Subject: [PATCH] senseless fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2078 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/paragraph.C | 2 ++ src/text2.C | 1 + 3 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index a5f6ab650e..d883230f2d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-06-01 Lars Gullik Bjønnes + + * paragraph.C (BreakParagraph): set the inset_owner in the new par + to the same as the par we break from + 2001-05-31 Lars Gullik Bjønnes * commandtags.h: add LFUN_INSET_WIDE_FLOAT diff --git a/src/paragraph.C b/src/paragraph.C index 62d8208078..1f05276cde 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -964,6 +964,8 @@ void LyXParagraph::BreakParagraph(BufferParams const & bparams, { // create a new paragraph LyXParagraph * tmp = new LyXParagraph(this); + // remember to set the inset_owner + tmp->SetInsetOwner(InInset()); // this is an idea for a more userfriendly layout handling, I will // see what the users say diff --git a/src/text2.C b/src/text2.C index 3fe279c4c1..ecfef3dfa7 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1674,6 +1674,7 @@ void LyXText::SetCounter(Buffer const * buf, LyXParagraph * par) const if (layout.labeltype == LABEL_SENSITIVE) { bool isOK (par->InInset() && par->InInset()->owner() && (par->InInset()->owner()->LyxCode() == Inset::FLOAT_CODE)); + if (isOK) { InsetFloat * tmp = static_cast(par->InInset()->owner()); Floating const & fl