mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
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:
parent
12ed18b1bd
commit
ec5265b97c
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user