mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Fixed a bug when there is no citation
This commit is contained in:
parent
9f62413b10
commit
8c09d3ba1a
@ -1914,7 +1914,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
Inset * inset = cur.nextInset();
|
||||
if (!inset || inset->lyxCode() != CITE_CODE)
|
||||
inset = cur.prevInset();
|
||||
if (inset->lyxCode() == CITE_CODE) {
|
||||
if (inset && inset->lyxCode() == CITE_CODE) {
|
||||
InsetCitation * icite = static_cast<InsetCitation *>(inset);
|
||||
if (icite->addKey(arg)) {
|
||||
dr.forceBufferUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user