mathed52.diff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1728 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-03-09 23:55:50 +00:00
parent ce64f74dd7
commit bce1032704
2 changed files with 9 additions and 7 deletions

View File

@ -6,6 +6,8 @@
* math_xiter.C: use MathedRowContainer::erase
* math_parser.C: use MathedRowContainer::insert_after
2001-03-08 André Pönitz <poenitz@htwm.de>
* math_rowst.h: give MathedRowContainer an 'insert' method.

View File

@ -424,8 +424,10 @@ void mathed_parse(MathedArray & array, unsigned flags = 0,
int acc_brace = 0;
int acc_braces[8];
MathParInset * mt = (mtx) ? *mtx : 0;
MathedRowSt * crow = (mt) ? mt->getRowSt().data_ : 0;
MathedRowContainer::iterator crow;
if (mt)
crow = mt->getRowSt().begin();
++plevel;
MathedIter data(&array);
while (t) {
@ -602,10 +604,8 @@ void mathed_parse(MathedArray & array, unsigned flags = 0,
case LM_TK_NEWLINE:
if (mt && (flags & FLAG_END)) {
if (mt->Permit(LMPF_ALLOW_CR)) {
if (crow) {
crow->next_ = new MathedRowSt(mt->GetColumns() + 1);
crow = crow->next_;
}
mt->getRowSt().insert_after(crow, MathedRowSt(mt->GetColumns() + 1));
++crow;
data.insert('K', LM_TC_CR);
} else
mathPrintError("Unexpected newline");
@ -869,7 +869,7 @@ void mathed_parse(MathedArray & array, unsigned flags = 0,
}
mt->SetStyle(size);
mt->SetType(mathed_env);
crow = mt->getRowSt().data_;
crow = mt->getRowSt().begin();
}
lyxerr[Debug::MATHED] << "MATH BEGIN[" << mathed_env << "]" << endl;