mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
128a8ef3e8
commit
97c3e3f33c
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user