]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xyarrowinset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_xyarrowinset.C
index 87dde936c598ebdbfaeb62e04c03afc9e9763051..5f3489f3e3631cca333df6a07ce361334277baa3 100644 (file)
@@ -48,8 +48,8 @@ MathXArray const & MathXYArrowInset::targetCell() const
                }
        }
        //lyxerr << "target: x: " << x << " y: " << y << "\n";
-       int n = mi_.idx + p->ncols() * y + x;
-       if (n < 0 || n >= int(p->nargs())) {
+       MathInset::idx_type n = mi_.idx + p->ncols() * y + x;
+       if (n >= p->nargs()) {
                lyxerr << "source: n: " << mi_.idx << "\n";
                lyxerr << "target: n: " << n << " out of range\n";
                n = 0;
@@ -111,7 +111,7 @@ void MathXYArrowInset::draw(Painter & pain, int x, int y) const
                MathXArray const & t = targetCell();
                pain.line(s.xm(), s.ym(), t.xm(), t.ym(), LColor::math);
                xcell(1).draw(pain, (s.xm() + t.xm())/2, (s.ym() + t.ym())/2);
-               
+
        }
 }