ANOTHER Spurious assert?


Subject: ANOTHER Spurious assert?
From: Thomas Fletcher (thomasf@qnx.com)
Date: Sat Nov 11 2000 - 16:08:06 CST


On Sun, 12 Nov 2000, Martin Sevior wrote:
> On Sat, 11 Nov 2000, Sam TH wrote:
> > On Sat, Nov 11, 2000 at 03:43:15PM +0100, Mike Nordell wrote:
> > > pf_Frag_Object constructor asserts
> > >
> > > UT_ASSERT(pszType);
> > >
> > > Is this really correct? An image don't have a "type". To reproduce, try
> > > opening test/wp/suite/image_height_width.abw
> >
> > Yeah, that assert seems bogus. It can go.
> >
> It was probabally left over from debugging the piecetable fields patch.
> Feel free to remove it.
>

Martin,

  While we are at it (talking about spurious asserts), Martin you
put one in just recently to assert fv_View.cpp line 1093

UT_Bool FV_View::cmdCharInsert(UT_UCSChar * text,
                               UT_uint32 count, UT_Bool bForce)

[ ... ]

1.305 (msevior 08-Nov-00): UT_uint32 d = (UT_uint32) text[0];
1.305 (msevior 08-Nov-00): UT_ASSERT( d != 63);

This is asserting every time I type in a '?', which is really
annoying let me tell you.

Won't show up in the real builds, but I prefer to work on the
debug versions so that when bad things happen I can try and
fix them.

Thomas



This archive was generated by hypermail 2b25 : Sat Nov 11 2000 - 16:07:28 CST