From 6fff9e48295834dfcace73371f30bb520529d840 Mon Sep 17 00:00:00 2001 From: Andrew Jewett Date: Sun, 15 Aug 2021 17:32:39 -0700 Subject: [PATCH] fixed a bug in the implementation of the "-tv" argument for "filter_mrc" --- bin/filter_mrc/filter_mrc.cpp | 4 ++-- bin/filter_mrc/handlers.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/filter_mrc/filter_mrc.cpp b/bin/filter_mrc/filter_mrc.cpp index 0e3b418..fa99c36 100644 --- a/bin/filter_mrc/filter_mrc.cpp +++ b/bin/filter_mrc/filter_mrc.cpp @@ -29,8 +29,8 @@ using namespace std; string g_program_name("filter_mrc"); -string g_version_string("0.29.13"); -string g_date_string("2021-8-11"); +string g_version_string("0.29.14"); +string g_date_string("2021-8-14"); diff --git a/bin/filter_mrc/handlers.cpp b/bin/filter_mrc/handlers.cpp index ffaaa7b..7436d33 100644 --- a/bin/filter_mrc/handlers.cpp +++ b/bin/filter_mrc/handlers.cpp @@ -2049,8 +2049,8 @@ HandleTV(const Settings &settings, ixyz[d] = int(round(r[d])); } if ((ixyz[0] < 0) || (image_size[0] <= ixyz[0]) || - (ixyz[1] < 0) || (image_size[1] <= ixyz[0]) || - (ixyz[2] < 0) || (image_size[2] <= ixyz[0])) + (ixyz[1] < 0) || (image_size[1] <= ixyz[1]) || + (ixyz[2] < 0) || (image_size[2] <= ixyz[2])) break; if (mask.aaafI && (mask.aaafI[ixyz[2]][ixyz[1]][ixyz[0]] == 0.0))