mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* src/mathed/math_gridinset.C
(doDispatch): fix off by one error when checking cur.idx() (bug 2655) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14185 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2335670309
commit
390ea4eb24
@ -292,10 +292,14 @@ 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
|
||||
if (nuc().back()->asSymbolInset())
|
||||
if (nuc().back()->asSymbolInset()->name().find("int") != string::npos)
|
||||
return false;
|
||||
}
|
||||
|
||||
// assume "real" limits for everything else
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user