Skip to content

Commit 599fa87

Browse files
committed
Don't set display name in attachScale() if dimensionName is empty
fixes #3
1 parent acb7e64 commit 599fa87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

C/src/ModelicaSDFFunctions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ const char * ModelicaSDF_attach_scale(const char *filename, const char *dataset_
793793
goto out;
794794
}
795795

796+
if (dim_name && strlen(dim_name) == 0) {
797+
dim_name = NULL;
798+
}
799+
796800
if (H5DSset_scale(scale_id, dim_name) < 0) {
797801
set_error_message("Failed to set scale on '%s'", scale_name);
798802
goto out;

0 commit comments

Comments
 (0)