]> git.lyx.org Git - lyx.git/commitdiff
Enable default value for labels code.
authorDekel Tsur <dekelts@tau.ac.il>
Mon, 15 Jan 2001 13:31:25 +0000 (13:31 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Mon, 15 Jan 2001 13:31:25 +0000 (13:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1335 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyx_cb.C

index a886f7da676cd027df7e11c1f9e62c2807285f57..8b6c37c9319293bdb6df9a79adf3a69fdef43843 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-15  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lyx_cb.C (MenuInsertLabel): Enable default value code.
+
 2001-01-13  Dekel Tsur  <dekelts@tau.ac.il>
 
        * paragraph.C (SimpleTeXOnePar) Put \protect before paragraph
index 5509d936bf428507359d3d16b7e42925dd34017a..4c3d20435f7bbe1783e3b407eec5ad2a2e73e36e 100644 (file)
@@ -518,7 +518,6 @@ void MenuInsertLabel(BufferView * bv, string const & arg)
        string label(arg);
        ProhibitInput(bv);
        if (label.empty()) {
-#ifdef LABEL_INIT
 #ifndef NEW_INSETS
                LyXParagraph * par =
                        bv->text->cursor.par()->FirstPhysicalPar();
@@ -576,17 +575,13 @@ void MenuInsertLabel(BufferView * bv, string const & arg)
                        string head;
                        par_text = split(par_text, head, ' ');
                        if (i > 0)
-                               text += '_'; // Is it legal to use spaces in
+                               text += '-'; // Is it legal to use spaces in
                                             // labels ?
                        text += head;
                }
 
                pair<bool, string> result =
                        askForText(_("Enter new label to insert:"), text);
-#else
-               pair<bool, string> result =
-                       askForText(_("Enter new label to insert:"));
-#endif
                if (result.first) {
                        label = frontStrip(strip(result.second));
                }