Skip to content

Commit 3c40d10

Browse files
committed
fix: sampling of categorical parameters with more than 1 value
1 parent be7645c commit 3c40d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/MetaFilters/iASamplingSettingsDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ void iASamplingSettingsDlg::runClicked()
885885
}
886886
}
887887
if ((desc->valueType() == iAValueType::Categorical || desc->valueType() == iAValueType::Boolean) &&
888-
desc->defaultValue().toString().size() == 0)
888+
desc->defaultValue().toStringList().size() == 0)
889889
{
890890
msg += QString("Parameter '%1': Currently, no value is selected; you must select at least one value!\n").arg(desc->name());
891891
}

0 commit comments

Comments
 (0)