revert last accidental commit and do the intended one

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14186 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-06-23 14:20:49 +00:00
parent 390ea4eb24
commit 331e78d3e0
2 changed files with 3 additions and 7 deletions

View File

@ -1134,7 +1134,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
else if (s == "delete-row") {
for (int i = 0, n = extractInt(is); i < n; ++i) {
delRow(cur.row());
if (cur.idx() > nargs())
if (cur.idx() >= nargs())
cur.idx() -= ncols();
}
cur.pos() = 0; // trick, see below

View File

@ -292,14 +292,10 @@ bool MathScriptInset::hasLimits() const
if (!nuc().back()->isScriptable())
return false;
if (nuc().back()->asSymbolInset()) {
// \intop is an alias for \int\limits, \ointop == \oint\limits
if (nuc().back()->asSymbolInset()->name().find("intop") != string::npos)
return true;
// per default \int has limits beside the \int even in displayed formulas
// per default \int has limits beside the \int even in displayed formulas
if (nuc().back()->asSymbolInset())
if (nuc().back()->asSymbolInset()->name().find("int") != string::npos)
return false;
}
// assume "real" limits for everything else
return true;