[LyX/master] Fix default limits value for (under|over)brace

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Feb 5 13:47:38 UTC 2021


commit 720f439868aca21988634c52f24ef897a7030b80
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Fri Feb 5 14:36:21 2021 +0100

    Fix default limits value for (under|over)brace
    
    Fixes bug #12107.
---
 src/mathed/InsetMathDecoration.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mathed/InsetMathDecoration.cpp b/src/mathed/InsetMathDecoration.cpp
index c82416d..8bd0047 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;


More information about the lyx-cvs mailing list