From 720f439868aca21988634c52f24ef897a7030b80 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 5 Feb 2021 14:36:21 +0100 Subject: [PATCH] Fix default limits value for (under|over)brace Fixes bug #12107. --- src/mathed/InsetMathDecoration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathDecoration.cpp b/src/mathed/InsetMathDecoration.cpp index c82416dca0..8bd004736f 100644 --- a/src/mathed/InsetMathDecoration.cpp +++ b/src/mathed/InsetMathDecoration.cpp @@ -66,9 +66,9 @@ MathClass InsetMathDecoration::mathClass() const } -Limits InsetMathDecoration::defaultLimits(bool display) const +Limits InsetMathDecoration::defaultLimits(bool /*display*/) const { - if (allowsLimitsChange() && display) + if (allowsLimitsChange()) return LIMITS; else return NO_LIMITS;