From: Richard Heck Date: Fri, 4 Apr 2014 19:53:27 +0000 (-0400) Subject: Fix two thinkos caught by the cppcheck script. X-Git-Tag: 2.2.0alpha1~2032 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=84d4d45daa9e0b1a18ab0133c6caa5f34e7f8616;p=features.git Fix two thinkos caught by the cppcheck script. --- 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; }