more appropriate behaviour on assert

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26233 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-08-24 21:24:21 +00:00
parent 68c1719929
commit 3a5e4ab8ca

View File

@ -95,7 +95,7 @@ void RowPainter::paintInset(Inset const * inset, pos_type const pos)
{
Font const font = text_metrics_.displayFont(pit_, pos);
LASSERT(inset, /**/);
LASSERT(inset, return);
// Backup full_repaint status because some insets (InsetTabular)
// requires a full repaint
bool pi_full_repaint = pi_.full_repaint;