Mercurial > hg > minc-tools
changeset 1664:17b4ee9d0ccf
Don't allow users to actually set a dimension class of 'any'
author | bert <bert> |
---|---|
date | Fri, 06 Feb 2004 22:20:30 +0000 |
parents | 6051a0e88e43 |
children | cde14129b717 |
files | libsrc2/dimension.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libsrc2/dimension.c +++ b/libsrc2/dimension.c @@ -134,9 +134,6 @@ */ handle->comments = NULL; switch (class) { - case MI_DIMCLASS_ANY: - handle->class = MI_DIMCLASS_ANY; - break; case MI_DIMCLASS_SPATIAL: handle->class = MI_DIMCLASS_SPATIAL; if (strcmp(name, "xspace") == 0) { @@ -199,6 +196,7 @@ case MI_DIMCLASS_RECORD: handle->class = MI_DIMCLASS_RECORD; break; + case MI_DIMCLASS_ANY: default: return (MI_ERROR); }