Commit ca71ba4e authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix inversion of logic.

* compare returns 0 when the relevant fields are equal.
parent 27247fbf
......@@ -4621,10 +4621,10 @@ cdfLazyXYValGetCompare(struct cdfLazyGrid *lazyGridRef,
*valsGetYRef = &lazyGridRef->yValsGet,
*valsGetXTest = &lazyGridTest->xValsGet,
*valsGetYTest = &lazyGridTest->yValsGet;
return valsGetXRef->datasetNCId == valsGetXTest->datasetNCId
&& valsGetXRef->varNCId == valsGetXTest->varNCId
&& valsGetYRef->datasetNCId == valsGetYTest->datasetNCId
&& valsGetYRef->varNCId == valsGetYTest->varNCId;
return valsGetXRef->datasetNCId != valsGetXTest->datasetNCId
|| valsGetXRef->varNCId != valsGetXTest->varNCId
|| valsGetYRef->datasetNCId != valsGetYTest->datasetNCId
|| valsGetYRef->varNCId != valsGetYTest->varNCId;
}
static int
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment