On Mon, 01 Oct 2007 10:47:22 +0200 Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
> Martin Vermeer wrote: > > Abdel, > > > > we have a problem... are you sure the stuff you did with dimension and > > coord cache is OK for InsetMathFrac? I see misrendering and crashes, > > but the latter only for UNIT. > > Should be better now. > > Abdel. Better, but not yet good: I get a crash break on pointer: 0xa5335a8 hint: dim size: 4 Assertion triggered in void lyx::lyxbreaker(const void*, const char*, int) by failing check "false" in file CoordCache.cpp:38 when trying to create a unit inset (one or two cells) in a fresh file. - Martin > Author: younes > Date: Mon Oct 1 10:37:13 2007 > New Revision: 20623 > > URL: http://www.lyx.org/trac/changeset/20623 > Log: > Copy&Paste fix. > > Modified: > lyx-devel/trunk/src/mathed/InsetMathFrac.cpp > > Modified: lyx-devel/trunk/src/mathed/InsetMathFrac.cpp > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/mathed/InsetMathFrac.cpp?rev=20623 > ============================================================================== > --- lyx-devel/trunk/src/mathed/InsetMathFrac.cpp (original) > +++ lyx-devel/trunk/src/mathed/InsetMathFrac.cpp Mon Oct 1 10:37:13 2007 > @@ -141,7 +141,7 @@ > Dimension const dim = dimension(*pi.base.bv); > Dimension const dim0 = cell(0).dimension(*pi.base.bv); > Dimension const dim1 = cell(1).dimension(*pi.base.bv); > - Dimension const dim2 = cell(0).dimension(*pi.base.bv); > + Dimension const dim2 = cell(2).dimension(*pi.base.bv); > int m = x + dim.wid / 2; > if (kind_ == UNIT || (kind_ == UNITFRAC && nargs() == 3)) { > if (nargs() == 1) { > > > >