src/h5core/h5u_model.c:

- bugfix with h5u_set_view (0, -1)
This commit is contained in:
2015-07-03 17:45:49 +02:00
parent 877b611758
commit 707cafb2d8
+5 -2
View File
@@ -231,7 +231,7 @@ h5u_reset_view (
/*
if start == -1 && end == -1 -> reset view
elif end == -1 -> select zero particles
elif end == -1 -> select to end
*/
h5_err_t
@@ -264,7 +264,10 @@ h5u_set_view (
* many particles there should be! */
H5_CORE_API_LEAVE (H5_SUCCESS);
}
if (end < 0) {
end = total+end;
}
if (start < 0 || start >= total) {
H5_CORE_API_LEAVE (
h5_error(