Jean-Marc Lasgouttes wrote:
I decided to try again the table of contents (which was always
disabled), and now it crashes LyX with file Intro.lyx.
Backtrace follows. If I look at frame 2, lfun_name_ is not initialized
correctly:
Interesting... Does the attached patch fixes the problem?
Abdel.
Index: ControlCommand.C
===================================================================
--- ControlCommand.C (revision 17575)
+++ ControlCommand.C (working copy)
@@ -21,8 +21,8 @@
namespace lyx {
namespace frontend {
-ControlCommand::ControlCommand(Dialog & dialog, string const & command_name,
- string const & lfun_name)
+ControlCommand::ControlCommand(Dialog & dialog, string const command_name,
+ string const lfun_name)
: Dialog::Controller(dialog), params_(command_name),
lfun_name_(lfun_name)
{}
Index: ControlCommand.h
===================================================================
--- ControlCommand.h (revision 17575)
+++ ControlCommand.h (working copy)
@@ -29,8 +29,8 @@
An empty \p lfun_name indicates that no action will occur on
'Apply'.
*/
- ControlCommand(Dialog &, std::string const & command_name,
- std::string const & lfun_name);
+ ControlCommand(Dialog &, std::string const command_name,
+ std::string const lfun_name);
///
virtual ~ControlCommand() {}
///