mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
Fix crash when closing the last buffer and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15998 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
34600f5055
commit
37ee9727f7
@ -197,7 +197,11 @@ void BufferView::setBuffer(Buffer * b)
|
||||
}
|
||||
}
|
||||
|
||||
updateMetrics(false);
|
||||
// FIXME: in principle, a simple call to updateMetrics(false) should
|
||||
// be enough here. But, for unknown reason, it seems that only the line
|
||||
// of the cursor is updated in the CoordCache.
|
||||
if (buffer_)
|
||||
updateMetrics(false);
|
||||
|
||||
if (buffer_ && graphics::Previews::status() != LyXRC::PREVIEW_OFF)
|
||||
graphics::Previews::get().generateBufferPreviews(*buffer_);
|
||||
|
Loading…
Reference in New Issue
Block a user