From 5dc46fafb121bb901b741efe38f20a6a8b0e50cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 16 Dec 2004 15:35:17 +0000 Subject: [PATCH] fix xforms math panel (bug 1214) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9389 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/FormMathsBitmap.C | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index bfd5726b61..bd2a7b185c 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2004-12-16 Jürgen Spitzmüller + + * FormMathsBitmap.C: Do not split strings with blank into two + separate dispatches (bug 1214) + 2004-12-16 Angus Leeming * FormFiledialog.C: remove redundant "using lyx::support::GetEnvPath;" diff --git a/src/frontends/xforms/FormMathsBitmap.C b/src/frontends/xforms/FormMathsBitmap.C index b588c23d8a..a1e5dcfae4 100644 --- a/src/frontends/xforms/FormMathsBitmap.C +++ b/src/frontends/xforms/FormMathsBitmap.C @@ -173,13 +173,7 @@ int FormMathsBitmap::GetIndex(FL_OBJECT * ob_in) void FormMathsBitmap::apply() { - string::size_type const i = latex_chosen_.find(' '); - if (i != string::npos) { - controller().dispatchFunc(LFUN_MATH_MODE); - controller().dispatchInsert(latex_chosen_.substr(0,i)); - controller().dispatchInsert('\\' + latex_chosen_.substr(i + 1)); - } else - controller().dispatchInsert(latex_chosen_); + controller().dispatchInsert(latex_chosen_); }