diff options
author | Thomas White <taw@physics.org> | 2012-10-17 15:10:50 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-10-17 15:10:50 -0700 |
commit | f90404e85f5dcdbe9022b0a058412812ddea5f44 (patch) | |
tree | 3c9f3ccdf4a6f327a4e96b673c679356e858f009 | |
parent | 3e34ddc0c44fa31398715413cd6ad973222ec949 (diff) |
describe_symmetry: Print plus sign only if a minus sign isn't
-rw-r--r-- | libcrystfel/src/symmetry.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c index 03f04bbd..5cc073b4 100644 --- a/libcrystfel/src/symmetry.c +++ b/libcrystfel/src/symmetry.c @@ -1622,9 +1622,11 @@ static char *get_matrix_name(signed int *v) continue; } - if ( printed ) add_chars(text, "+", max_len); - - if ( v[i]<0 ) add_chars(text, "-", max_len); + if ( v[i]<0 ) { + add_chars(text, "-", max_len); + } else { + if ( printed ) add_chars(text, "+", max_len); + } if ( abs(v[i])>1 ) { char num[3]; |