]> git.lyx.org Git - features.git/commitdiff
Avoid useless test
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:30:29 +0000 (23:30 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:30:29 +0000 (23:30 +0200)
Spotted by cppcheck

src/mathed/InsetMathMacro.cpp

index 5e72eecdc27850b4737e833593b420df9f9f4bdb..b5b0322a540c2d9f08238c4a21bbc74d156b5373 100644 (file)
@@ -1233,7 +1233,6 @@ bool InsetMathMacro::completionSupported(Cursor const & cur) const
                return InsetMathNest::completionSupported(cur);
 
        return lyxrc.completion_popup_math
-               && displayMode() == DISPLAY_UNFOLDED
                && cur.bv().cursor().pos() == int(name().size());
 }
 
@@ -1244,7 +1243,6 @@ bool InsetMathMacro::inlineCompletionSupported(Cursor const & cur) const
                return InsetMathNest::inlineCompletionSupported(cur);
 
        return lyxrc.completion_inline_math
-               && displayMode() == DISPLAY_UNFOLDED
                && cur.bv().cursor().pos() == int(name().size());
 }