On Tue, Jun 12, 2007 at 09:14:44PM +0200, Stefan Schimanski wrote: > > Am 12.06.2007 um 14:47 schrieb Leuven, E.: > > >ctrl-n > >ctrl-m > >\neq > >arrow right (exit math) > >arrow left (enter math again) > > > >and i don't see the neq sign but \ = > > I can confirm that. Please make a bug report out of it.
Seems like width computation assumes w >= 0 somewhere. Btw can anybody explain me how stuff like //BufferView & bv = *mi.base.bv; //Buffer const & buf = *bv.buffer(); for (size_t i = 0, n = size(); i != n; ++i) { MathAtom const & at = operator[](i); #if 0 MathMacro const * mac = at->asMacro(); if (mac && buf.hasMacro(mac->name())) { MacroData const & tmpl = buf.getMacro(mac->name()); int numargs = tmpl.numargs(); if (i + numargs > n) numargs = n - i - 1; lyxerr << "metrics:found macro: " << mac->name() << " numargs: " << numargs << endl; if (!isInside(bv.cursor(), *this, i + 1, i + numargs + 1)) { MathData args(begin() + i + 1, begin() + i + numargs + 1); MathData exp; tmpl.expand(args, exp); mac->setExpansion(exp, args); mac->metricsExpanded(mi, d); dim_.wid += mac->widthExpanded(); i += numargs; continue; } } #endif at->metrics(mi, d); can end up in MathData.cpp? This is certainly not the bit bucket of the nation.... The whole business around rev 17836 and 17840 looks dubious at best. Andre'