mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix a null pointer dereference spotted by coverity
This commit is contained in:
parent
c83526c3ca
commit
be14b73787
@ -2944,7 +2944,9 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
|
||||
undo().recordUndoBufferParams(CursorData());
|
||||
branch_list.add(branch_name);
|
||||
branch = branch_list.find(branch_name);
|
||||
branch->setColors("background", "background");
|
||||
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