aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-02-14 14:13:42 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-02-14 14:13:42 +0000
commit7144216342686b49e4f759c2fdd8de4946db8fdb (patch)
tree1fedc52bfdded273bae0fb9bb34c3e74a5f71ce3 /src/main.c
parent10ece6fb4017738589e4cad309b9d4091a2745a3 (diff)
Trap further downstream if IPR fails
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@7 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index a89fdf9..7f5d5c9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -58,8 +58,8 @@ static gint main_method_window_response(GtkWidget *method_window, gint response,
val = mrc_read(ctx);
}
- if ( ctx->rmode == RECONSTRUCTION_PREDICTION ) {
- ipr_reduce(ctx);
+ if ( !val && (ctx->rmode == RECONSTRUCTION_PREDICTION) ) {
+ val = ipr_reduce(ctx);
}
if ( val == 0 ) {