From: Abdelrazak Younes Date: Thu, 26 Oct 2006 13:36:04 +0000 (+0000) Subject: paintText(): replace the test on BufferView::buffer() with an assertion as this shoul... X-Git-Tag: 1.6.10~12186 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=97c3e3f33c6e48131072f8bc933455b889e360cb;p=features.git 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 --- 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();