diff --git a/ChangeLog b/ChangeLog index 37a3677957..9a310ba409 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,12 @@ +1999-10-19 Jean-Marc Lasgouttes + + * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a + string. + 1999-10-18 Jean-Marc Lasgouttes * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses - LyXLex::netx() and not eatline() to get its argument. + LyXLex::next() and not eatline() to get its argument. 1999-10-16 Lars Gullik Bjønnes diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 43a263404b..6bea5130bc 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -17,6 +17,7 @@ #include #include "LString.h" +#include "support/lstrings.h" #include "lyx_main.h" #include FORMS_H_LOCATION #include "lyx.h" @@ -1220,8 +1221,7 @@ void FootCB(FL_OBJECT*, long) void LayoutsCB(int sel, void *) { - string tmp; - tmp += sel; + string tmp = tostr(sel); current_view->getOwner()->getLyXFunc()->Dispatch(LFUN_LAYOUTNO, tmp.c_str()); }