]> git.lyx.org Git - features.git/commitdiff
senseless fix
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 31 May 2001 22:34:05 +0000 (22:34 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 31 May 2001 22:34:05 +0000 (22:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2078 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph.C
src/text2.C

index a5f6ab650e4a4e47942cc413c1e1022027fd78a2..d883230f2da64f8cdedbd4e438689367eefa7aa3 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-01  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * 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  <larsbj@birdstep.com>
 
        * commandtags.h: add LFUN_INSET_WIDE_FLOAT
index 62d8208078533c027a95dea4659db94a8b88d5a0..1f05276cdee3be5aaceb3d368bd61c6bd970dd70 100644 (file)
@@ -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
index 3fe279c4c130eb97b125db03466e20c23a3f704a..ecfef3dfa78789d205ee4bbc727ed4a0a7632ccf 100644 (file)
@@ -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<InsetFloat*>(par->InInset()->owner());
                                Floating const & fl