From: Dekel Tsur Date: Mon, 15 Jan 2001 13:31:25 +0000 (+0000) Subject: Enable default value for labels code. X-Git-Tag: 1.6.10~21725 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a52d9b4f782155f03ff0c964000a4706cef0d6fd;p=lyx.git Enable default value for labels code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1335 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index a886f7da67..8b6c37c931 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-01-15 Dekel Tsur + + * lyx_cb.C (MenuInsertLabel): Enable default value code. + 2001-01-13 Dekel Tsur * paragraph.C (SimpleTeXOnePar) Put \protect before paragraph diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 5509d936bf..4c3d20435f 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -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 result = askForText(_("Enter new label to insert:"), text); -#else - pair result = - askForText(_("Enter new label to insert:")); -#endif if (result.first) { label = frontStrip(strip(result.second)); }