mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
fix a crash on exit since nobody objected
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8164 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0ad320dce9
commit
ee6fcfd1dd
@ -293,9 +293,6 @@ void BufferView::Pimpl::buffer(Buffer * b)
|
||||
|
||||
// set current buffer
|
||||
buffer_ = b;
|
||||
buffer_->text().init(bv_);
|
||||
buffer_->text().textwidth_ = workarea().workWidth();
|
||||
buffer_->text().fullRebreak();
|
||||
|
||||
top_y_ = 0;
|
||||
|
||||
@ -311,6 +308,10 @@ void BufferView::Pimpl::buffer(Buffer * b)
|
||||
lyxerr[Debug::INFO] << "Buffer addr: " << buffer_ << endl;
|
||||
connectBuffer(*buffer_);
|
||||
|
||||
buffer_->text().init(bv_);
|
||||
buffer_->text().textwidth_ = workarea().workWidth();
|
||||
buffer_->text().fullRebreak();
|
||||
|
||||
// If we don't have a text object for this, we make one
|
||||
if (bv_->text() == 0)
|
||||
resizeCurrentBuffer();
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-12-01 John Levon <levon@movementarian.org>
|
||||
|
||||
* BufferView_pimpl.C: fix a crash on exit with
|
||||
a buffer open
|
||||
|
||||
2003-11-30 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* BranchList.C: fix setSelected() method.
|
||||
|
Loading…
Reference in New Issue
Block a user