]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_rootinset.C
index ee4a2d67fa52796dc76c1bc3e1eaad8c8c5a9591..41162470f11f2ebc8a6ead22fc90c34706a4e171 100644 (file)
@@ -54,7 +54,7 @@ void MathRootInset::draw(Painter & pain, int x, int y) const
        xp[2] = x + w;        yp[2] = y + d;
        xp[3] = x + w - 2;    yp[3] = y + (d - a)/2 + 2;
        xp[4] = x;            yp[4] = y + (d - a)/2 + 2;
-       pain.lines(xp, yp, 5, LColor::mathline);
+       pain.lines(xp, yp, 5, LColor::math);
 }
 
 
@@ -70,22 +70,20 @@ void MathRootInset::normalize(NormalStream & os) const
 }
 
 
-bool MathRootInset::idxUp(idx_type & idx, pos_type & pos) const
+bool MathRootInset::idxUp(idx_type & idx) const
 {
        if (idx == 0)
                return false;
        idx = 0;
-       pos = cell(0).size();
        return true;
 }
 
 
-bool MathRootInset::idxDown(idx_type & idx, pos_type & pos) const
+bool MathRootInset::idxDown(idx_type & idx) const
 {
        if (idx == 1)
                return false;
        idx = 1;
-       pos = 0;
        return true;
 }