]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_splitinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_splitinset.C
index e372b5d658f99c4737d4a85a5de26e1b524468c6..b5ccfe370605f311a41bf3d4e803579ec57f63ef 100644 (file)
@@ -88,6 +88,8 @@ void MathSplitInset::write(WriteStream & ws) const
        if (ws.fragile())
                ws << "\\protect";
        ws << "\\begin{" << name_ << '}';
+       if (name_ == "alignedat")
+               ws << '{' << static_cast<unsigned int>((ncols() + 1)/2) << '}';
        MathGridInset::write(ws);
        if (ws.fragile())
                ws << "\\protect";