mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix duplicated pointer check
Found by cppcheck: (style) Same expression on both sides of '&&'.
This commit is contained in:
parent
adfeb9637f
commit
60e594a0f7
@ -1072,7 +1072,7 @@ docstring latexifyFromCursor(DocIterator const & cur, int len)
|
||||
// Retrieve the math environment type, and add '$' or '$[' or others (\begin{equation}) accordingly
|
||||
for (int s = cur.depth() - 1; s >= 0; --s) {
|
||||
CursorSlice const & cs = cur[s];
|
||||
if (cs.asInsetMath() && cs.asInsetMath() && cs.asInsetMath()->asHullInset()) {
|
||||
if (cs.asInsetMath() && cs.asInsetMath()->asHullInset()) {
|
||||
WriteStream ws(ods);
|
||||
cs.asInsetMath()->asHullInset()->header_write(ws);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user