commit 84d4d45daa9e0b1a18ab0133c6caa5f34e7f8616
Author: Richard Heck <[email protected]>
Date:   Fri Apr 4 15:53:27 2014 -0400

    Fix two thinkos caught by the cppcheck script.

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index acf8ace..113715a 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 cd4ae45..b8c965b 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;
 }
 
 

Reply via email to