]> git.lyx.org Git - features.git/commitdiff
first_after_edit was not set in the right place in one ::edit call (fix #385)
authorJürgen Vigna <jug@sad.it>
Thu, 9 May 2002 13:43:40 +0000 (13:43 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 9 May 2002 13:43:40 +0000 (13:43 +0000)
(see ChangeLog for detailed description). Anyway this stuff is one of the
first things to remove as soon as we have a decent inset and paragraph
iterator in 1.3.0!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4148 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetcollapsable.C

index 8612fd2e70e2f32f5616817006fbd9299c5e6d64..120ff0c16b1a4cd5f7ab5cfc1896df41a5269cd5 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-09  Juergen Vigna  <jug@sad.it>
+
+       * insetcollapsable.C (edit): first_after_edit should only be
+       set to true if we enter this inset and it was collapsed so we
+       open it up. This is needed to reclose it after a search/replace
+       or spellcheck function opened it and was negative.
+
 2002-05-09  Dekel Tsur  <dekelts@tau.ac.il>
 
        * insetfloat.C (latex): Return correct value.
index ca3defd7c82c0058d6f07e70270b19bc1f5ae019..b9a34a777d4d1fdd96b27fef796523bffde25895 100644 (file)
@@ -276,12 +276,12 @@ void InsetCollapsable::edit(BufferView * bv, bool front)
                inset.setUpdateStatus(bv, InsetText::FULL);
                bv->updateInset(this, false);
                inset.edit(bv, front);
+               first_after_edit = true;
        } else {
                if (!bv->lockInset(this))
                        return;
                inset.edit(bv, front);
        }
-       first_after_edit = true;
 }