allow regexp matches for Modify::find_fix_by_style() and consolidate usage of searching for fixes

This commit is contained in:
Axel Kohlmeyer
2019-10-18 05:34:27 -04:00
parent bb21847f8a
commit dcb1b6500b
13 changed files with 40 additions and 55 deletions

View File

@ -1029,7 +1029,7 @@ int Modify::find_fix_by_style(const char *style)
{
int ifix;
for (ifix = 0; ifix < nfix; ifix++)
if (strcmp(style,fix[ifix]->style) == 0) break;
if (utils::strmatch(fix[ifix]->style,style)) break;
if (ifix == nfix) return -1;
return ifix;
}