[Kst] branches/work/kst/portto4/kst/src/libkst
Nicolas Brisset
nicolas.brisset at eurocopter.com
Tue Nov 23 17:14:09 CET 2010
SVN commit 1200025 by brisset:
Prevent crash when creating a contour plot. I don't know what the *ok is used for, but as OL is passed I guess it's more a
provision than anything else. Now I can at least create an image and it does not crash. But it's pretty slow...
M +2 -2 matrix.cpp
--- branches/work/kst/portto4/kst/src/libkst/matrix.cpp #1200024:1200025
@@ -98,10 +98,10 @@
int index = zIndex(x_index, y_index);
if ((index < 0) || !finite(_z[index]) || KST_ISNAN(_z[index])) {
- (*ok) = false;
+ if (ok) (*ok) = false;
return 0.0;
}
- (*ok) = true;
+ if (ok) (*ok) = true;
return _z[index];
}
More information about the Kst
mailing list