]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.cpp
Fix regression of 18779013 for \smash
[lyx.git] / src / mathed / CommandInset.cpp
index 6ed32754d46f2515e71e537dcb3bfda65d8b9d30..0cf041c23ea7e59b2ec9fc62cf30690fca02cda5 100644 (file)
@@ -14,7 +14,6 @@
 #include "MathData.h"
 #include "MathStream.h"
 #include "DispatchResult.h"
-#include "FuncRequest.h"
 
 #include <sstream>
 
@@ -68,7 +67,7 @@ void CommandInset::write(WriteStream & os) const
        ModeSpecifier specifier(os, currentMode(), lockedMode(), asciiOnly());
        MathEnsurer ensurer(os, needs_math_mode_);
        os << '\\' << name_;
-       if (cell(1).size())
+       if (!cell(1).empty())
                os << '[' << cell(1) << ']';
        os << '{' << cell(0) << '}';
 }