aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-17 16:06:52 -0700
committerThomas White <taw@physics.org>2012-10-17 16:06:52 -0700
commit4336565ec1abdbec00e0afe7b679cf554aa66903 (patch)
treee441a35b0d51dc758ae9a3b500c6c66722518977 /libcrystfel/src
parenta5930e658811badd3953e1cced25da2a55ab5bbb (diff)
describe_symmetry(): Don't attempt to display "i"
It makes an invalid assumption about the setting
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/symmetry.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c
index 584a79e5..8a8a6184 100644
--- a/libcrystfel/src/symmetry.c
+++ b/libcrystfel/src/symmetry.c
@@ -1615,13 +1615,6 @@ static char *get_matrix_name(signed int *v)
if ( v[i] == 0 ) continue;
- if ( (i==0) && (v[0]==v[1]) ) {
- if ( v[i]>0 ) add_chars(text, "-", max_len);
- add_chars(text, "i", max_len);
- v[1] -= v[0];
- continue;
- }
-
if ( v[i]<0 ) {
add_chars(text, "-", max_len);
} else {
@@ -1695,6 +1688,7 @@ void describe_symmetry(const SymOpList *s)
if ( len > max_len ) max_len = len;
free(name);
}
+ if ( max_len < 8 ) max_len = 8;
for ( i=0; i<n; i++ ) {
@@ -1702,7 +1696,7 @@ void describe_symmetry(const SymOpList *s)
size_t m, j;
name = name_equiv(&s->ops[i]);
- m = (max_len - strlen(name)) + 3;
+ m = max_len - strlen(name) + 3;
STATUS("%s", name);
for ( j=0; j<m; j++ ) {
@@ -1710,6 +1704,7 @@ void describe_symmetry(const SymOpList *s)
}
free(name);
if ( (i!=0) && (i%8==0) ) STATUS("\n%15s ", "");
+
}
STATUS("\n");
}