]> git.lyx.org Git - features.git/commitdiff
reenable hide signal
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 2 Aug 2000 11:33:05 +0000 (11:33 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 2 Aug 2000 11:33:05 +0000 (11:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@949 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/insets/insetcommand.h
src/insets/insetref.C

index 87cf60f04f1737e3463f7007e36bfddfd2112a2f..503fd4ec519a7b86bfa9a48b51b9fe901ceb5d29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-08-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/insets/insetref.C (Latex): rewrite so that there is now
+       question that a initialization is requested.
+
+       * src/insets/insetcommand.h: reenable the hide signal
+
 2000-08-01  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/frontends/xforms/Menubar_pimpl.C (create_submenu): try to
index 524cfa9fb2435d13e20addf2c4ede772a8ad9888..81f58781c57d70720cd4724aba66387786f9e99d 100644 (file)
@@ -78,7 +78,7 @@ public:
        explicit
        InsetCommand(InsetCommandParams const &);
        ///
-       virtual ~InsetCommand() { /*hide();*/ };
+       virtual ~InsetCommand() { hide(); };
        ///
        void Write(Buffer const *, std::ostream &) const;
 
@@ -129,7 +129,7 @@ public:
        ///
        void setParams(InsetCommandParams const &);
        ///
-       //Signal0<void> hide;
+       Signal0<void> hide;
 private:
        ///
        InsetCommandParams p_;
index b211db9ff5447af221be689ac36f79fb9990b639..6d1b80d781b78d5d0695af7a87d3c2a95d3a742e 100644 (file)
@@ -102,8 +102,8 @@ int InsetRef::Latex(Buffer const *, ostream & os,
                os << escape(getCommand());
        else {
                string ns;
-               InsetCommand clone = InsetCommand(getCmdName(),
-                                                 getContents(), ns);
+               InsetCommand clone(getCmdName(),
+                                  getContents(), ns);
                os << escape(clone.getCommand());
        }
        return 0;