* 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:
Georg Baum 2006-06-23 14:17:14 +00:00
parent 2335670309
commit 390ea4eb24

View File

@ -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;