]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_deliminset.C
index ee5dc03f933bb832fed5826b7b6bf50c6ad567d4..1e179f8bed40c726f8f774682688f531f15dce09 100644 (file)
@@ -111,10 +111,11 @@ void MathDelimInset::draw(PainterInfo & pi, int x, int y) const
        mathed_draw_deco(pi, x + 4, b, dw_, dim_.height(), left_);
        mathed_draw_deco(pi, x + dim_.width() - dw_ - 4,
                b, dw_, dim_.height(), right_);
+       setPosCache(pi, x, y);
 }
 
 
-bool MathDelimInset::isParanthesis() const
+bool MathDelimInset::isParenthesis() const
 {
        return left_ == "(" && right_ == ")";
 }