From 1680eaf5f0edeed089e2bdc2b539b80187b88d3c Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Sun, 10 Mar 2024 16:55:12 +0100 Subject: [PATCH] Reduce code duplication. --- src/mathed/MathExtern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index daf171981f..22124cc13d 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -630,7 +630,7 @@ bool testSymbol(MathAtom const & at, docstring const & name) bool testSymbol(MathAtom const & at, char const * const name) { - return at->asSymbolInset() && at->asSymbolInset()->name() == from_ascii(name); + return testSymbol(at, from_ascii(name)); } -- 2.39.5