* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
- * Copyright (c) 2001-2004, The GROMACS development team,
+ * Copyright (c) 2001-2013, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* This program is free software; you can redistribute it and/or
{
snew(f->grps, 1);
snew(f->grps->index, 1);
- analyse(atoms, f->grps, &f->grpnames, FALSE, FALSE);
+ analyse(atoms, f->grps, &f->grpnames, false, false);
}
snew(f->bDisable, f->grps->nr);
for (g = 0; g < f->grps->nr; g++)
case DLG_SET:
if (set)
{
- if (sscanf(set, "%d", &nset) == 1)
+ if (sscanf(set, "%10d", &nset) == 1)
{
f->bShow[nset] = !f->bShow[nset];
}
len = strlen(title);
for (i = 0; (i < (int)gmx->filter->grps->nr); i++)
{
- len = max(len, (int)strlen(gmx->filter->grpnames[i]));
+ len = std::max(len, (int)strlen(gmx->filter->grpnames[i]));
}
len += 2;
fprintf(tmp, "}\n\n}\n");
fclose(tmp);
- dlg = ReadDlg(x11, gmx->wd->self, title, x11->fg, x11->bg, tmpfile,
- 0, 0, TRUE, FALSE, FilterCB, gmx);
+ dlg = ReadDlg(x11, gmx->wd->self, title, tmpfile,
+ 0, 0, true, false, FilterCB, gmx);
remove(tmpfile);