From 99f15dce018ff81764e995a5591a18b58f65a779 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 25 Jul 2014 00:12:37 +0200 Subject: [PATCH] renewcomment -> renewcommand As reported by Jiri Slaby BUGS: 337767 FIXED-IN: 4.14.0 --- ui/latexrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/latexrenderer.cpp b/ui/latexrenderer.cpp index c012884fb..6eaf50072 100644 --- a/ui/latexrenderer.cpp +++ b/ui/latexrenderer.cpp @@ -191,7 +191,7 @@ LatexRenderer::Error LatexRenderer::handleLatex( QString& fileName, const QStrin bool LatexRenderer::securityCheck( const QString &latexFormula ) { - return !latexFormula.contains(QRegExp("\\\\(def|let|futurelet|newcommand|renewcomment|else|fi|write|input|include" + return !latexFormula.contains(QRegExp("\\\\(def|let|futurelet|newcommand|renewcommand|else|fi|write|input|include" "|chardef|catcode|makeatletter|noexpand|toksdef|every|errhelp|errorstopmode|scrollmode|nonstopmode|batchmode" "|read|csname|newhelp|relax|afterground|afterassignment|expandafter|noexpand|special|command|loop|repeat|toks" "|output|line|mathcode|name|item|section|mbox|DeclareRobustCommand)[^a-zA-Z]"));