Re: LASSERT Question

2012-01-25 Thread Abdelrazak Younes
On Tue, Jan 24, 2012 at 4:41 PM, Richard Heck wrote: > On 01/24/2012 02:13 AM, Abdelrazak Younes wrote: > > On Sat, Jan 21, 2012 at 10:02 PM, Richard Heck > rgh...@comcast.net>> wrote: >> >> >>Consider: >> >>void Text::setFont(Cursor & cur, Font const & font) >>{ >> LASSERT(thi

LASSERT Question

2012-01-21 Thread Richard Heck
Consider: void Text::setFont(Cursor & cur, Font const & font) { LASSERT(this == cur.text(), /**/); // Set the current_font // Determine basis font FontInfo layoutfont; Wouldn't it be better to return here if the assertion fails? Continuing seems like we're inviting disaster, wh