]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.cpp
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathColor.cpp
index 94a6c42e642c9dbc774bf84379e51505c1a2eed5..31ba778fafb0ddb507d39cfa9aaf2caaf607ddb1 100644 (file)
@@ -99,10 +99,10 @@ void InsetMathColor::write(WriteStream & os) const
        // We have to ensure correct spacing when the front and/or back
        // atoms are not ordinary ones (bug 11827).
        docstring const frontclass =
-               cell(0).size() ? class_to_string(cell(0).front()->mathClass())
+               !cell(0).empty() ? class_to_string(cell(0).front()->mathClass())
                               : from_ascii("mathord");
        docstring const backclass =
-               cell(0).size() ? class_to_string(cell(0).back()->mathClass())
+               !cell(0).empty() ? class_to_string(cell(0).back()->mathClass())
                               : from_ascii("mathord");
        bool adjchk = os.latex() && !os.inMathClass() && (normalcolor(color_) || oldstyle_);
        bool adjust_front = frontclass != "mathord" && adjchk;