Skip to content

Commit

Permalink
fixed a bug in the implementation of the "-tv" argument for "filter_mrc"
Browse files Browse the repository at this point in the history
  • Loading branch information
jewettaij committed Aug 16, 2021
1 parent d1a9a08 commit 6fff9e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/filter_mrc/filter_mrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");



Expand Down
4 changes: 2 additions & 2 deletions bin/filter_mrc/handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6fff9e4

Please sign in to comment.