Lars Gullik Bjønnes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
| Lars Gullik Bjønnes wrote:
| > Why is the assert commented out?
| > @@ -1949,8 +1948,8 @@
| > BufferView * LyXFunc::view() const
| > {
| > - BOOST_ASSERT(owner);
| > - return owner->view().get();
| > +// BOOST_ASSERT(owner);
| > + return owner->view();
|
| IIRC correctly this was because it was accessed before the one
| BufferView is created. The reason was that the BufferView creation is
| delayed following my GUI API cleanup. I am not sure this commented out
| call is necessary though. In any case, this is of course not the
| proper fix, we should see fix the origin of the call to this
| LyXFunc::view().
Well ... it is a non-fix. since if owner is nil, you'll get a
segfault, better to get an "controlled" shutdown with assert.
Right. You can put the code back in you commit.
Abdel.