]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathExInt.cpp
Fix assertion when checking if change in selection
[lyx.git] / src / mathed / InsetMathExInt.cpp
index ac5409f469aca3e432a9173967890fe357f6d71e..35bee0ef08d0d61de65b77a9e3c4891bd1e8212c 100644 (file)
@@ -76,7 +76,7 @@ void InsetMathExInt::draw(PainterInfo &, int, int) const
 void InsetMathExInt::maple(MapleStream & os) const
 {
        os << symbol_ << '(';
-       if (cell(0).size())
+       if (!cell(0).empty())
                os << cell(0);
        else
                os << '1';
@@ -94,7 +94,7 @@ void InsetMathExInt::maxima(MaximaStream & os) const
        else
                os << symbol_ << '(';
 
-       if (cell(0).size())
+       if (!cell(0).empty())
                os << cell(0) << ',';
        else
                os << '1' << ',';
@@ -113,7 +113,7 @@ void InsetMathExInt::mathematica(MathematicaStream & os) const
        else
                os << symbol_ << '[';
 
-       if (cell(0).size())
+       if (!cell(0).empty())
                os << cell(0) << ',';
        else
                os << '1' << ',';
@@ -165,12 +165,12 @@ void InsetMathExInt::htmlize(HtmlStream & os) const
        InsetMathSymbol sym(symbol_);
        bool const lower = !cell(2).empty();
        bool const upper = !cell(3).empty();
-       
+
        os << MTag("span", "class='integral'")
           << MTag("span", "class='intsym'");
        sym.htmlize(os, false);
        os << ETag("span");
-       
+
        if (lower && upper) {
                os << MTag("span", "class='limits'")
                   << MTag("span") << cell(2) << ETag("span")