]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDiagram.cpp
... and RELEASE-NOTES
[lyx.git] / src / mathed / InsetMathDiagram.cpp
index 25ad63ca5f967096ef80fffa80e4dff595eae3f8..d5a1b5231aea43b94550bb92db894ac352ef25f6 100644 (file)
 
 #include "InsetMathDiagram.h"
 
-#include "LaTeXFeatures.h"
 #include "MathStream.h"
 
+#include "LaTeXFeatures.h"
+#include "MetricsInfo.h"
+
 #include <ostream>
 
 namespace lyx {
@@ -56,9 +58,12 @@ void InsetMathDiagram::write(WriteStream & os) const
 {
        MathEnsurer ensurer(os);
        os << "\\Diagram";
+       bool open = os.startOuterRow();
        os << '{';
        InsetMathGrid::write(os);
        os << "}\n";
+       if (open)
+               os.startOuterRow();
 }