}
}
//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;
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);
-
+
}
}