]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.C
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_decorationinset.C
index 16c6d27018e2412a4b5e37f9ef01a567403c1684..eddbbf7ce17b4654616df51d1a079ecd04692254 100644 (file)
@@ -92,8 +92,6 @@ bool MathDecorationInset::wide() const
 bool MathDecorationInset::ams() const
 {
        return
-                       key_->name == "overleftarrow" ||
-                       key_->name == "overrightarrow" ||
                        key_->name == "overleftrightarrow" ||
                        key_->name == "underleftarrow" ||
                        key_->name == "underrightarrow" ||
@@ -130,6 +128,7 @@ void MathDecorationInset::draw(PainterInfo & pi, int x, int y) const
                mathed_draw_deco(pi, x + 1 + (cell(0).width() - dw_) / 2,
                        y + dy_, dw_, dh_, key_->name);
        drawMarkers(pi, x, y);
+       setPosCache(pi, x, y);
 }