]> git.lyx.org Git - features.git/commitdiff
Fix bug with the layout combox.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Oct 1999 10:32:10 +0000 (10:32 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Oct 1999 10:32:10 +0000 (10:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@206 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/lyx_cb.C

index 37a367795739b6bcca816236cedcb9261eac36d5..9a310ba409fa8ad49ed80429e0fca3bebbae964a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
+1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
+       string. 
+
 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * 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  <larsbj@lyx.org>
 
index 43a263404b14e28ddb4754d79b30d07aa8facbfd..6bea5130bcb2cbc422b6f466e64f83be3c82a1d6 100644 (file)
@@ -17,6 +17,7 @@
 #include <cstdlib>
 
 #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());
 }