mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Add comment about coverity #102061.
This commit is contained in:
parent
7b15ea393f
commit
f19d650752
@ -1464,6 +1464,8 @@ void GuiApplication::gotoBookmark(unsigned int idx, bool openFile,
|
||||
// if the current buffer is not that one, switch to it.
|
||||
BufferView * doc_bv = current_view_ ?
|
||||
current_view_->documentBufferView() : 0;
|
||||
// FIXME It's possible that doc_bv is null!!
|
||||
// See coverity #102061
|
||||
Cursor const old = doc_bv->cursor();
|
||||
if (!doc_bv || doc_bv->buffer().fileName() != tmp.filename) {
|
||||
if (switchToBuffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user