]> git.lyx.org Git - features.git/commitdiff
fix invalid cursor when opening collapsables
authorAlfredo Braunstein <abraunst@lyx.org>
Thu, 11 Nov 2004 08:18:30 +0000 (08:18 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Thu, 11 Nov 2004 08:18:30 +0000 (08:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9226 a592a061-630c-0410-9148-cb99ea01b6c8

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

index b3bee1ce49e178e4e01f9038d3b373df4bd59aa6..97476ebfcfc1bc6e6ac2db82011f4d9ba836009c 100644 (file)
@@ -1,3 +1,9 @@
+
+2004-11-11  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * insetcollapsable.C (priv_dispatch): do not push the inset to the
+       cursor in dispatch
+
 2004-11-09  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * ExternalSupport.C, insetgraphics.C:
index 3d16d9a15d3143af022f4e6a2ad8678a2b1a477d..633b1d60ec1952103e97bffb3c2f103838c54c0e 100644 (file)
@@ -287,8 +287,8 @@ void InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest & cmd)
 
                case Collapsed:
                        lyxerr << "InsetCollapsable::lfunMouseRelease 1" << endl;
-                       setStatus(Open);
-                       edit(cur, true);
+                       open();
+                       InsetText::edit(cur, true);
                        cur.bv().cursor() = cur;
                        break;