bool const valid = !(converterED->text().isEmpty()
|| from.name() == to.name());
- int const cnr = convertersLW->currentItem()->type();
- Converter const & c = form_->converters().get(cnr);
- string const old_command = c.command;
- string const old_flag = c.flags;
+ string old_command;
+ string old_flag;
+
+ if (convertersLW->count() > 0) {
+ int const cnr = convertersLW->currentItem()->type();
+ Converter const & c = form_->converters().get(cnr);
+ old_command = c.command;
+ old_flag = c.flags;
+ }
+
string const new_command = fromqstr(converterED->text());
string const new_flag = fromqstr(converterFlagED->text());
* USER INTERFACE
-- Fixed crash when modifying or pasting an equation label and there
+- Fix crash when modifying or pasting an equation label and there
are references to that label in math (bug 8095).
- Fix crash when clicking away in the same math inset just after hitting '\'
- Fix crash when dissolving a math macro whose first argument is another
parameterless macro (bug 8105).
+- Fix crash when removing all converters in preferences (bug 8178).
+
- Update the current view after dispatching a command through the lyxserver.
The missing screen update could cause either a failure in executing the
command or could even crash LyX (bugs 6871 and 8119).