fix xforms math panel (bug 1214)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9389 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2004-12-16 15:35:17 +00:00
parent 82dca177a3
commit 5dc46fafb1
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2004-12-16 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* FormMathsBitmap.C: Do not split strings with blank into two
separate dispatches (bug 1214)
2004-12-16 Angus Leeming <leeming@lyx.org> 2004-12-16 Angus Leeming <leeming@lyx.org>
* FormFiledialog.C: remove redundant "using lyx::support::GetEnvPath;" * FormFiledialog.C: remove redundant "using lyx::support::GetEnvPath;"

View File

@ -173,13 +173,7 @@ int FormMathsBitmap::GetIndex(FL_OBJECT * ob_in)
void FormMathsBitmap::apply() void FormMathsBitmap::apply()
{ {
string::size_type const i = latex_chosen_.find(' '); controller().dispatchInsert(latex_chosen_);
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_);
} }