Skip to content

Commit

Permalink
Fix syntax error in e2ea845
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqr authored and arch1t3cht committed Aug 1, 2022
1 parent 61c6303 commit c232ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog_align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ namespace {
#define CHECK_EXISTS_POS check_exists(pos, x, y, lrud, lab, tolerance)
do {
pos -= 2;
} while (pos >= 0 && !CHECK_EXISTS_POS)
} while (pos >= 0 && CHECK_EXISTS_POS);
pos++;
pos = std::max(0, pos);
auto left = CHECK_EXISTS_POS ? pos : pos + 1;

pos = current_n_frame;
do {
pos += 2;
} while (pos < n_frames && !CHECK_EXISTS_POS)
} while (pos < n_frames && CHECK_EXISTS_POS);
pos--;
pos = std::min(pos, n_frames - 1);
auto right = CHECK_EXISTS_POS ? pos : pos - 1;
Expand Down

0 comments on commit c232ef6

Please sign in to comment.