[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-devel
Subject: [paatch] fix bug 2045
From: Georg Baum <Georg.Baum () post ! rwth-aachen ! de>
Date: 2006-03-31 15:32:23
Message-ID: e0ji27$u5i$1 () sea ! gmane ! org
[Download RAW message or body]
Bug 2045 (C-U does not work in mathed) has annoyed me today again, so I
fixed it. The attached patch is going in soon.
Log:
Enable C-U in mathed (bug 2045)
Georg
["2045.diff" (text/x-diff)]
Index: src/mathed/math_nestinset.C
===================================================================
--- src/mathed/math_nestinset.C (Revision 13537)
+++ src/mathed/math_nestinset.C (Arbeitskopie)
@@ -790,6 +790,10 @@ void MathNestInset::doDispatch(LCursor &
case LFUN_DEFAULT:
handleFont(cur, cmd.argument, "textnormal");
break;
+ case LFUN_UNDERLINE:
+ recordUndo(cur, Undo::ATOMIC);
+ cur.handleNest(createMathInset("underline"));
+ break;
case LFUN_MATH_MODE: {
#if 1
@@ -951,6 +955,7 @@ bool MathNestInset::getStatus(LCursor &
case LFUN_NOUN:
case LFUN_ROMAN:
case LFUN_DEFAULT:
+ case LFUN_UNDERLINE:
flag.enabled(true);
break;
case LFUN_MATH_MUTATE:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic