]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathMacro.cpp
Overhaul (no)limits support
[features.git] / src / mathed / InsetMathMacro.cpp
index c35226fd6ca41af04334bf29dbff975fe0e9ae81..24409512e1ba7344d39031a195e8bdc6537aa32a 100644 (file)
@@ -398,14 +398,14 @@ bool InsetMathMacro::allowsLimitsChange() const
 }
 
 
-Limits InsetMathMacro::defaultLimits() const
+Limits InsetMathMacro::defaultLimits(bool display) const
 {
        if (d->expanded_.empty())
                return NO_LIMITS;
        // Guess from the expanded macro
        InsetMath const * in = d->expanded_.back().nucleus();
        Limits const lim = in->limits() == AUTO_LIMITS
-               ? in->defaultLimits() : in->limits();
+               ? in->defaultLimits(display) : in->limits();
        LATTEST(lim != AUTO_LIMITS);
        return lim;
 }