From 97c3e3f33c6e48131072f8bc933455b889e360cb Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 26 Oct 2006 13:36:04 +0000 Subject: [PATCH] paintText(): replace the test on BufferView::buffer() with an assertion as this should not happen anyway. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15557 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index f4fb24d1e2..5eed74d9a7 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -898,9 +898,7 @@ void paintPar void paintText(BufferView & bv, ViewMetricsInfo const & vi, Painter & pain) { - if (!bv.buffer()) - return; - + BOOST_ASSERT(bv.buffer()); LyXText & text = bv.buffer()->text(); bool const select = bv.cursor().selection(); -- 2.39.2