hi, i would like to put the patch originally written by Georg into the trunk, see http://www.lyx.org/trac/ticket/2045. as stated in the bug there are some issue (which i didnt reproduce now), but anyway its with this fix better than the current state.
objections? pavel
diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index a0962e9..00e4f7b 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -953,6 +953,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd) handleFont(cur, cmd.argument(), "textnormal"); break; + case LFUN_FONT_UNDERLINE: + cur.recordUndo(); + cur.handleNest(createInsetMath("underline")); + break; case LFUN_MATH_MODE: { #if 1 // ignore math-mode on when already in math mode @@ -1288,6 +1292,7 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd, flag.setEnabled(true); break; + case LFUN_FONT_UNDERLINE: case LFUN_FONT_FRAK: flag.setEnabled(currentMode() != TEXT_MODE); break;