commit 148efdf6bb52bcc3fbb03682f49d678ffe34388a
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Sep 10 16:30:36 2025 +0200

    Fixup fc02eece: avoid LaTeX errors
    
    usebrace(true) is actually necessary whenever there is a superscript.
---
 src/mathed/InsetMathScript.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp
index 2affedfb40..47d8459ecf 100644
--- a/src/mathed/InsetMathScript.cpp
+++ b/src/mathed/InsetMathScript.cpp
@@ -526,13 +526,13 @@ void InsetMathScript::writeMath(TeXMathStream & os) const
                        os << "^{" << up() << '}';
        }
 
-       if (hasDown() /*&& !down().empty()*/) {
+       if (hasDown() /*&& !down().empty()*/)
                os << "_{" << down() << '}';
-               // Avoid double superscript errors by writing an
-               // empty group {} when a prime immediately follows
-               if (os.latex() && hasUp())
-                       os.useBraces(true);
-       }
+
+       // Avoid double superscript errors by writing an
+       // empty group {} when a prime immediately follows
+       if (os.latex() && hasUp())
+               os.useBraces(true);
 
        if (lock_ && !os.latex())
                os << "\\lyxlock ";
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to