]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / InsetMathScript.cpp
index cbef2fafb10bf58369e3ef80d4eaf9734474ea8c..e40db4f16488064b6c91b18c6a0c3dcf1a9c2408 100644 (file)
@@ -388,7 +388,7 @@ void InsetMathScript::removeScript(bool up)
                if (up == cell_1_is_up_)
                        cells_.pop_back();
        } else if (nargs() == 3) {
-               if (up == true) {
+               if (up) {
                        swap(cells_[1], cells_[2]);
                        cell_1_is_up_ = false;
                } else {