mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Fix a null pointer dereference spotted by coverity
This commit is contained in:
parent
c83526c3ca
commit
be14b73787
@ -2944,6 +2944,8 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
|
||||
undo().recordUndoBufferParams(CursorData());
|
||||
branch_list.add(branch_name);
|
||||
branch = branch_list.find(branch_name);
|
||||
if (branch)
|
||||
// needed to update the color table for dark mode
|
||||
branch->setColors("background", "background");
|
||||
dr.setError(false);
|
||||
dr.screenUpdate(Update::Force);
|
||||
|
Loading…
Reference in New Issue
Block a user