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
This commit is contained in:
Abdelrazak Younes 2006-10-26 13:36:04 +00:00
parent 128a8ef3e8
commit 97c3e3f33c

View File

@ -898,9 +898,7 @@ void paintPar
void paintText(BufferView & bv, ViewMetricsInfo const & vi, void paintText(BufferView & bv, ViewMetricsInfo const & vi,
Painter & pain) Painter & pain)
{ {
if (!bv.buffer()) BOOST_ASSERT(bv.buffer());
return;
LyXText & text = bv.buffer()->text(); LyXText & text = bv.buffer()->text();
bool const select = bv.cursor().selection(); bool const select = bv.cursor().selection();