]> git.lyx.org Git - features.git/commitdiff
paintText(): replace the test on BufferView::buffer() with an assertion as this shoul...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 26 Oct 2006 13:36:04 +0000 (13:36 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 26 Oct 2006 13:36:04 +0000 (13:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15557 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.C

index f4fb24d1e2b806737aafc5052c10521829f7b278..5eed74d9a79369634f6286b061c0fccb7c8609c7 100644 (file)
@@ -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();