Fix bug 1472

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10193 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2005-07-14 23:36:49 +00:00
parent 12ed18b1bd
commit ec5265b97c
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,9 @@
2005-07-16 André Pönitz <poenitz@lyx.org>
* math_hullinset.C (BREAKLINE): choose between eqnarray and
align according to user preference
2005-07-16 André Pönitz <poenitz@lyx.org>
* math_charinset.C (mathmlize): escape <, >, and & on export

View File

@ -19,6 +19,8 @@
#include "math_streamstr.h"
#include "math_support.h"
#include "buffer.h"
#include "bufferparams.h"
#include "BufferView.h"
#include "CutAndPaste.h"
#include "FuncStatus.h"
@ -992,7 +994,9 @@ void MathHullInset::doDispatch(LCursor & cur, FuncRequest & cmd)
// some magic for the common case
if (type_ == "simple" || type_ == "equation") {
recordUndoInset(cur);
mutate("eqnarray");
bool const align =
cur.bv().buffer()->params().use_amsmath == BufferParams::AMS_ON;
mutate(align ? "align" : "eqnarray");
cur.idx() = 0;
cur.pos() = cur.lastpos();
}