aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-16 15:06:59 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:55 +0100
commit7cac57dd3a4fe1e2be8102c03e4fad0fa997273e (patch)
tree20ce20dde4e5cbc6abe98fbffd834e502473a310 /src/render_hkl.c
parent4417dabb492eb07bec9834bc9bc99165cd054c73 (diff)
render_hkl: Tidy up
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index 0ba0f06f..4c556c9a 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -288,7 +288,7 @@ static void render_za(UnitCell *cell, ReflItemList *items,
scale = 1.0;
draw_circles(xh, xk, xl, yh, yk, yl, zh, zk, zl,
ref, counts, items, sym, NULL, wght, boost, colscale, cell,
- 0.0, theta, as, bs, cx, cy, scale,
+ 0.0, theta, as, bs, 0.0, 0.0, scale,
&max_ux, &max_uy, &max_val, &max_u, &max_v, &max_res);
max_res /= 1e9;
@@ -296,9 +296,8 @@ static void render_za(UnitCell *cell, ReflItemList *items,
max_res*2.0, 1.0/(max_res*2.0));
if ( max_val <= 0.0 ) {
- max_r = 4.0;
STATUS("Couldn't find max value.\n");
- goto out;
+ return;
}
/* Choose whichever scaling factor gives the smallest value */
@@ -345,7 +344,6 @@ static void render_za(UnitCell *cell, ReflItemList *items,
max_r, theta, as, bs, cx, cy, scale,
NULL, NULL, &max_val, NULL, NULL, NULL);
-out:
/* Centre marker */
cairo_arc(dctx, (double)cx,
(double)cy, max_r, 0, 2*M_PI);