aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-13 17:10:43 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commitbf8f47751a6618a52424cfed9af6124cec913539 (patch)
tree8b20b6f8a81efa5112cb516639102c27629a8709 /src/cell.c
parent9380767017fce2478a1460cab42d5f62a48a0404 (diff)
Ensure all parts of cell are set by cell_rotate()
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell.c b/src/cell.c
index cb846db5..a2507319 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -539,7 +539,7 @@ UnitCell *cell_rotate(UnitCell *in, struct quaternion quat)
{
struct rvec a, b, c;
struct rvec an, bn, cn;
- UnitCell *out = cell_new();
+ UnitCell *out = cell_new_from_cell(in);
cell_get_cartesian(in, &a.u, &a.v, &a.w,
&b.u, &b.v, &b.w,