fix bug reported in issue

This commit is contained in:
Axel Kohlmeyer 2018-03-26 11:51:00 -04:00
parent 24e48760da
commit 48509622fe
1 changed files with 2 additions and 2 deletions

View File

@ -299,10 +299,10 @@ void Balance::command(int narg, char **arg)
if (comm->layout == LAYOUT_UNIFORM) {
if (xflag == USER || yflag == USER || zflag == USER)
comm->layout = LAYOUT_NONUNIFORM;
} else if (comm->style == LAYOUT_NONUNIFORM) {
} else if (comm->layout == LAYOUT_NONUNIFORM) {
if (xflag == UNIFORM && yflag == UNIFORM && zflag == UNIFORM)
comm->layout = LAYOUT_UNIFORM;
} else if (comm->style == LAYOUT_TILED) {
} else if (comm->layout == LAYOUT_TILED) {
if (xflag == UNIFORM && yflag == UNIFORM && zflag == UNIFORM)
comm->layout = LAYOUT_UNIFORM;
else comm->layout = LAYOUT_NONUNIFORM;