mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
390ea4eb24
commit
331e78d3e0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user