diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-08-07 15:35:42 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-08-07 15:35:42 (GMT) |
commit | c827f0450cf1324cb972b90d70b2d8d4faecdb9e (patch) | |
tree | 602d54495f28e0e7e1c24cae96d6f2cbbd911a7f /tools/h5dump | |
parent | dc7d4bc0a76b53f4a082571a4e2bd05574edae49 (diff) | |
download | hdf5-c827f0450cf1324cb972b90d70b2d8d4faecdb9e.zip hdf5-c827f0450cf1324cb972b90d70b2d8d4faecdb9e.tar.gz hdf5-c827f0450cf1324cb972b90d70b2d8d4faecdb9e.tar.bz2 |
[svn-r15447]
bug fix
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=788
don't print array indices for regions
tested: windows, linux
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 7118d10..d3e25f8 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -2217,6 +2217,19 @@ dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index) outputformat->do_escape=display_escape; /* print the matrix indices */ outputformat->pindex=display_index; + + /* do not print indices for regions */ + if(obj_data == DATASET_DATA) + { + hid_t f_type = H5Dget_type(obj_id); + + if (H5Tequal(f_type, H5T_STD_REF_DSETREG)) + { + outputformat->pindex = 0; + } + H5Tclose(f_type); + } + if (outputformat->pindex) { outputformat->idx_fmt = "(%s): "; outputformat->idx_n_fmt = HSIZE_T_FORMAT; |