From 84d4d45daa9e0b1a18ab0133c6caa5f34e7f8616 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 4 Apr 2014 15:53:27 -0400 Subject: [PATCH] Fix two thinkos caught by the cppcheck script. --- src/insets/InsetTabular.cpp | 2 +- src/mathed/InsetMathPhantom.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index acf8acece1..113715a60c 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -876,7 +876,7 @@ void Tabular::insertColumn(col_type const col, bool copy) setBottomLine(i, bottomLine(j)); setTopLine(i, topLine(j)); setLeftLine(i, leftLine(j)); - if (rightLine(j) && rightLine(j)) { + if (rightLine(i) && rightLine(j)) { setRightLine(i, true); setRightLine(j, false); } diff --git a/src/mathed/InsetMathPhantom.cpp b/src/mathed/InsetMathPhantom.cpp index cd4ae451cf..b8c965b21c 100644 --- a/src/mathed/InsetMathPhantom.cpp +++ b/src/mathed/InsetMathPhantom.cpp @@ -346,7 +346,7 @@ void InsetMathPhantom::validate(LaTeXFeatures & features) const bool InsetMathPhantom::visibleContents() const { - return kind_ == phantom || kind_ == vphantom || kind_ == vphantom; + return kind_ == phantom || kind_ == vphantom || kind_ == hphantom; } -- 2.39.2