]> git.lyx.org Git - features.git/commitdiff
Fix copy&paste error
authorEnrico Forestieri <forenr@lyx.org>
Wed, 17 Mar 2021 07:59:04 +0000 (08:59 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 17 Mar 2021 07:59:04 +0000 (08:59 +0100)
src/frontends/qt/LaTeXHighlighter.cpp

index d199fb19a2b3386303972a82bc6a0032793706cb..453f98b749dbea8160a71b28b9a112194927b925 100644 (file)
@@ -137,7 +137,7 @@ void LaTeXHighlighter::highlightBlock(QString const & text)
                int length = match.capturedEnd(1) - index;
                setFormat(index, length, mathFormat);
                match = exprMath.match(text, index + length);
-               int index = match.capturedStart(1);
+               index = match.capturedStart(1);
        }
        // [ ]
        static const QRegularExpression exprStartDispMath("(\\\\\\[|"