On Wed, Apr 05, 2006 at 09:16:43AM +0200, Georg Baum wrote: > Martin Vermeer wrote: > > > This bug is apparently not related to the patch. Oldfashioned \frac > > crashes too. It is again a case of "cursor pos in mid-air": create a > > \frac, type a character into the numerator, then into the denominator > > (leaving cur.pos() = 1), then move out of the fraction to the right. > > Then, repeatedly undo. > > > > At some point you will get a cursor at pos=1, in a cell having only 0 > > character positions. > > Maybe we should disallow direct write access to DocIterator::pit() and > DocIterator::idx() and provide setter methods that reset pos() if needed. > Or would this be a performance problem?
There's lot of code like '++idx()'. You'd need not just setters, and it would uglify code. But it probably would be safer. Andre'