]> git.lyx.org Git - features.git/commitdiff
Fix two thinkos caught by the cppcheck script.
authorRichard Heck <rgheck@lyx.org>
Fri, 4 Apr 2014 19:53:27 +0000 (15:53 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 21 Apr 2014 15:52:00 +0000 (11:52 -0400)
src/insets/InsetTabular.cpp
src/mathed/InsetMathPhantom.cpp

index acf8acece197c34cff957a2fe75c98c3b3bba800..113715a60c433967e5b2e630f7b1c404376a1ca4 100644 (file)
@@ -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);
                }
index cd4ae451cfdcf7b594302ddd5c392b4171358441..b8c965b21cfde45139b45abc08e6d6e2d654d7e3 100644 (file)
@@ -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;
 }