From 6cd1f4a5a9c03559b71d44190270f12d3ad35bc5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Sep 2020 15:38:30 +0200 Subject: Fix crystfel_indexing_opts_get_push_res --- src/crystfelindexingopts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crystfelindexingopts.c b/src/crystfelindexingopts.c index d908b5e7..d41c4ad9 100644 --- a/src/crystfelindexingopts.c +++ b/src/crystfelindexingopts.c @@ -618,7 +618,7 @@ int crystfel_indexing_opts_get_overpredict(CrystFELIndexingOpts *opts) float crystfel_indexing_opts_get_push_res(CrystFELIndexingOpts *opts) { - if ( gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(opts->limit_res)) ) { + if ( !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(opts->limit_res)) ) { return INFINITY; } else { const gchar *text; -- cgit v1.2.3