On Fri, Dec 12, 2003 at 02:59:27PM +0100, Andre Poenitz spake thusly:

> +     if (c == '_') {
> +             script(false);
> +             return true;
> +     }
> +
> +     if (c == '^') {
> +             script(true);
> +             return true;
> +     }

...and with the attached also the math panel sub/superscript buttons
will work again ;-)

- Martin

Index: ControlMath.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlMath.C,v
retrieving revision 1.23
diff -u -p -r1.23 ControlMath.C
--- ControlMath.C       6 Oct 2003 15:42:45 -0000       1.23
+++ ControlMath.C       12 Dec 2003 19:24:21 -0000
@@ -44,13 +44,15 @@ void ControlMath::dispatchInsert(string 
 
 void ControlMath::dispatchSubscript() const
 {
-       dispatchFunc(LFUN_SUBSCRIPT);
+       dispatchFunc(LFUN_INSERT_MATH, "_");
+       dispatchFunc(LFUN_DOWN);
 }
 
 
 void ControlMath::dispatchSuperscript() const
 {
-       dispatchFunc(LFUN_SUPERSCRIPT);
+       dispatchFunc(LFUN_INSERT_MATH, "^");
+       dispatchFunc(LFUN_UP);
 }
 
 

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to