aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-21 13:26:37 +0200
committerThomas White <taw@physics.org>2021-07-21 15:34:33 +0200
commit7e5536832b22036a634a74e16073b4762a416e29 (patch)
tree25799eb139d235f524a80c53fb25d0c9f64eb6f1 /src/render_hkl.c
parent760f17f56b7f79f67a9029cbe7cc55a0acccd3b9 (diff)
Reduce variable scope where possible
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index 94d6202a..c47a2c4d 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -421,7 +421,6 @@ static void render_za(UnitCell *cell, RefList *list,
double max_val;
double scale1, scale2, scale;
double sep_u, sep_v, max_r;
- double u, v;
double as, bs, theta;
double asx, asy, asz;
double bsx, bsy, bsz;
@@ -562,6 +561,8 @@ static void render_za(UnitCell *cell, RefList *list,
if ( !noaxes ) {
+ double u, v;
+
/* Centre marker */
cairo_arc(dctx, (double)cx,
(double)cy, max_r, 0, 2*M_PI);