From 48509622fe510c1f5ab4e78d44818ae8b79f1bab Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 26 Mar 2018 11:51:00 -0400 Subject: [PATCH] fix bug reported in issue #851 --- src/balance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/balance.cpp b/src/balance.cpp index 99d88c6383..45f185a6fc 100644 --- a/src/balance.cpp +++ b/src/balance.cpp @@ -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;