mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 18:07:18 +00:00
Fix test to make coverity happy
It is not obvious that cur is not null iff thisSlice is not -1, but this is what happens in the caller.
This commit is contained in:
parent
55957c4576
commit
25d64bf43a
@ -781,7 +781,10 @@ void MathData::collectParameters(Cursor * cur,
|
||||
// fix cursor
|
||||
vector<CursorSlice> argSlices;
|
||||
int argPos = 0;
|
||||
if (thisSlice != -1 && thisPos == int(pos))
|
||||
// Note: The two expressions on the first line are equivalent
|
||||
// (see caller), but making this explicit pleases coverity.
|
||||
if (cur && thisSlice != -1
|
||||
&& thisPos == int(pos))
|
||||
cur->cutOff(thisSlice, argSlices);
|
||||
|
||||
// which kind of parameter is it? In {}? With index x^n?
|
||||
|
Loading…
x
Reference in New Issue
Block a user