From a36dbf39f7e111f751e09022caa62b27e17d480d Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 12 Dec 2003 20:47:56 +0000 Subject: [PATCH] (Martin): enable the math panel sub/superscript buttons once again. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8245 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/ChangeLog | 12 ++++++++++++ src/frontends/controllers/ControlMath.C | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index b34f9429d8..86deb176d8 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,15 @@ +2003-12-12 Martin Vermeer + + * ControlMath.C (dispatchSubscript, dispatchSuperscript): enable + the math panel sub/superscript buttons once again. + +2003-12-12 Angus Leeming + + * ControlBranch.[Ch] (branchlist): new member function. + + * ControlDocument.C (setBranchColor): remove redundant call to + LColor::setColor. + 2003-12-11 Angus Leeming * ControlCommand.C (initialiseParams): changes due to the changed diff --git a/src/frontends/controllers/ControlMath.C b/src/frontends/controllers/ControlMath.C index 860906bd7c..dccfdce253 100644 --- a/src/frontends/controllers/ControlMath.C +++ b/src/frontends/controllers/ControlMath.C @@ -44,13 +44,15 @@ void ControlMath::dispatchInsert(string const & name) const 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); }